@me2em/react
    Preparing search index...

    Interface UseSessionResult

    Result of the useSession hook.

    interface UseSessionResult {
        session: Session | null;
        isLoaded: boolean;
        error: string | null;
        isExpired: boolean;
        renew: () => void;
    }
    Index
    session: Session | null

    The active session, or null if no handle or session creation failed.

    isLoaded: boolean

    Whether the session (or its absence) has been determined.

    error: string | null

    Error string if session creation or renewal failed.

    isExpired: boolean

    Whether the current session has expired.

    renew: () => void

    Manually renew the session (creates a new one with a fresh jti).