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

    Type Alias AuthModeWithKey

    AuthModeWithKey: AuthMode | `publishable:${string}` | `secret:${string}`

    Extended auth mode that supports targeting a specific named key.

    Use the colon syntax ("publishable:web_app") to require a specific named key from the SUPABASE_PUBLISHABLE_KEYS or SUPABASE_SECRET_KEYS JSON object. Use "publishable:*" or "secret:*" to accept any key in the set.

    // Accept only the "mobile" publishable key
    withSupabase({ auth: 'publishable:mobile' }, handler)

    // Accept any secret key
    withSupabase({ auth: 'secret:*' }, handler)

    // Mix named keys with other modes
    withSupabase({ auth: ['user', 'publishable:web_app'] }, handler)