@supabase/server - v0.2.0
    Preparing search index...

    Interface AuthResult

    Result of credential verification.

    Contains the resolved auth mode, the verified token (for "user" mode), decoded JWT claims, and the matched key name (for "public" / "secret" modes).

    • verifyCredentials
    • verifyAuth
    interface AuthResult {
        authType: Allow;
        token: string | null;
        userClaims: UserClaims | null;
        claims: JWTClaims | null;
        keyName?: string | null;
    }
    Index

    Properties

    authType: Allow

    The auth mode that was successfully matched.

    token: string | null

    The verified JWT, or null for non-user auth modes.

    userClaims: UserClaims | null

    Normalized user identity derived from the JWT, or null when no JWT is present.

    claims: JWTClaims | null

    Raw JWT payload, or null when no JWT is present.

    keyName?: string | null

    Name of the matched key (e.g. "default", "mobile"), or null for "user" / "always" modes.