Skip to main content

Type alias: AuthDelegate

Ƭ AuthDelegate: Object

Controller for retrieving the logged user or performing auth related operations. Note that if you are implementing your AuthDelegate, you probably will want to do it as the result of a hook. Check useFirebaseAuthDelegate code for an example.

Type declaration#

NameTypeDescription
authError?anyError dispatched by the auth provider
authLoadingbooleanIs the login process ongoing
loginSkipped?booleanHas the user skipped the login process
signOut() => voidSign out
skipLogin?() => voidSkip login
userUser | nullThe user currently logged in The values can be: the user object, null if they skipped login

Defined in#

models/auth.tsx:68