Interface AuthState<TUser>

interface AuthState {
    error: null | Error;
    isLoading: boolean;
    user: null | TUser;
}

Type Parameters

Hierarchy

Properties

error: null | Error

An object representing the last exception

isLoading: boolean

A flag that is true until the state knows that a user is either logged in or not

user: null | TUser

The user profile as decoded from the ID token after authentication

Generated using TypeDoc