Functions
Function: useAuth
docid\ zoz6w56ubppacr0po0gls useauth ▸ useauth < t >() interface useauth\<authclienttype> docid\ jgh3ijcywdl5t0pfiialj < t > the useauth hook returns information about the current authentication session, and functions for logging in and logging out chord's preferred authentication provider is https //magic link/ through our https //github com/chordcommerce/chord ui/pkgs/npm/chord magic import { useauth } from '@chordcommerce/react autonomy' const accountpage = () => { const { isloggedin } = useauth() if (!isloggedin) return // return account page } type parameters name type t extends interface authclient\<t> docid\ jisgs4kxnbqannkbxhaw < any , t > = any returns interface useauth\<authclienttype> docid\ jgh3ijcywdl5t0pfiialj < t > defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/react autonomy/src/hooks/use auth ts#l40