zerot
    Preparing search index...

    Interface AuthContext

    Generic authentication context type. Provides information about the authenticated user and session.

    interface AuthContext {
        session?: { expiresAt: Date; id: string; [key: string]: any };
        user?: { id: string; [key: string]: any };
        [key: string]: any;
    }

    Indexable

    • [key: string]: any

      Allows for custom data to be added to the context.

    Index

    Properties

    Properties

    session?: { expiresAt: Date; id: string; [key: string]: any }

    Session information, if available.

    user?: { id: string; [key: string]: any }

    User information, if authenticated.