Interface AuthState<TUser>

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

Type Parameters

Hierarchy (view full)

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