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

    Type Alias AllowWithKey

    AllowWithKey: Allow | `public:${string}` | `secret:${string}`

    Extended auth mode that supports targeting a specific named key.

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

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

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

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