@supabase/server - v1.7.0
    Preparing search index...

    Interface AuthFailureContext

    Everything the auth pipeline knows about a failed attempt, minus anything secret. Used to build messages, hints, and details.

    interface AuthFailureContext {
        authModes: readonly string[];
        received: ReceivedCredentials;
        configuredKeyNames?: Record<string, readonly string[]>;
        matchedKey?: { kind: "publishable" | "secret"; name: string; mode: string };
    }
    Index

    Properties

    authModes: readonly string[]

    Auth modes that were attempted, in the order they were tried.

    Which credential headers the request carried.

    configuredKeyNames?: Record<string, readonly string[]>

    Names (never values) of the keys configured for the attempted modes. Omitted for modes that don't use API keys.

    matchedKey?: { kind: "publishable" | "secret"; name: string; mode: string }

    Set when the rejected apikey is a configured key of kind held under name, and mode is the attempted mode that accepts a different name. Carries the name only, never the value.