application - v0.1.0
    Preparing search index...

    Interface AuthContextType

    Interface du contexte d'authentification

    interface AuthContextType {
        user: User | null;
        isAuthenticated: boolean;
        isLoading: boolean;
        login: (
            email: string,
            password: string,
            shouldRedirect?: boolean,
        ) => Promise<void>;
        logout: () => void;
        forceLogout: () => void;
        currentRoute: string | null;
        saveCurrentRoute: (route: string) => void;
        getAndClearSavedRoute: () => string | null;
    }
    Index

    Properties

    user: User | null
    isAuthenticated: boolean
    isLoading: boolean
    login: (
        email: string,
        password: string,
        shouldRedirect?: boolean,
    ) => Promise<void>
    logout: () => void
    forceLogout: () => void
    currentRoute: string | null
    saveCurrentRoute: (route: string) => void
    getAndClearSavedRoute: () => string | null