Skip to content
IC Reactor

UseAuthReturn

Defined in: react/src/hooks/createAuthHooks.ts:8

authenticate: () => Promise<Identity | undefined>

Defined in: react/src/hooks/createAuthHooks.ts:9

Promise<Identity | undefined>


login: (options?) => Promise<void>

Defined in: react/src/hooks/createAuthHooks.ts:10

AuthenticationSignInOptions

Promise<void>


logout: (options?) => Promise<void>

Defined in: react/src/hooks/createAuthHooks.ts:11

string

Promise<void>


isAuthenticated: boolean

Defined in: react/src/hooks/createAuthHooks.ts:12


isAuthenticating: boolean

Defined in: react/src/hooks/createAuthHooks.ts:13


principal: Principal | null

Defined in: react/src/hooks/createAuthHooks.ts:19

The signed-in user’s principal, or null while signed out. A signed-out session still holds an anonymous identity, and its principal is not returned here.


identity: Identity | null

Defined in: react/src/hooks/createAuthHooks.ts:20


error: Error | undefined

Defined in: react/src/hooks/createAuthHooks.ts:21