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

    Interface SupabaseContext<Database>

    The Supabase context created for each authenticated request.

    Contains pre-configured Supabase clients and the caller's identity. Identical regardless of which layer or adapter produced it.

    interface SupabaseContext<Database = unknown> {
        supabase: SupabaseClient<Database>;
        supabaseAdmin: SupabaseClient<Database>;
        userClaims: UserClaims | null;
        claims: JWTClaims | null;
        authType: Allow;
        authKeyName?: string | null;
    }

    Type Parameters

    • Database = unknown
    Index

    Properties

    supabase: SupabaseClient<Database>

    Supabase client scoped to the caller's identity. RLS policies apply.

    supabaseAdmin: SupabaseClient<Database>

    Admin Supabase client that bypasses Row-Level Security.

    userClaims: UserClaims | null

    JWT-derived identity. For the full Supabase User object, call supabase.auth.getUser().

    claims: JWTClaims | null

    Raw JWT payload. null for non-user auth modes.

    authType: Allow

    The auth mode that was used for this request.

    authKeyName?: string | null

    The auth key name of the API key that was used for this request.