Provides access to the AuthContext which contains information about the active channel.
Provides information about the current user & their authentication & authorization status.
'initial' | 'authenticated' | 'verifying' | 'unauthenticated'The status of the authentication.
stringThe error message if the authentication fails.
booleanWhether the user is authenticated.
(username: string, password: string, onSuccess?: () => void) => voidThe function to login the user.
(onSuccess?: () => void) => Promise<void>The function to logout the user.
ResultOf<typeof CurrentUserQuery>['activeAdministrator'] | undefinedThe user object.
NonNullable<ResultOf<typeof CurrentUserQuery>['me']>['channels'] | undefinedThe channels object.
() => voidThe function to refresh the current user.