ask-and-trust - v1.1.0
    Preparing search index...

    Type definition for the Auth context AuthContextType

    Defines the shape of the Auth context, including user state and authentication methods.

    interface AuthContextType {
        isLoading: boolean;
        logout: () => Promise<void>;
        refetchUser: () => void;
        user: null | User;
    }
    Index

    Properties

    isLoading: boolean

    Loading state for authentication operations

    logout: () => Promise<void>

    Function to logout the current user

    refetchUser: () => void

    Function to refetch the current user data

    user: null | User

    The current authenticated user