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.
Example
// 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)
Extended auth mode that supports targeting a specific named key.
Use the colon syntax (
"public:web_app") to require a specific named key from theSUPABASE_PUBLISHABLE_KEYSorSUPABASE_SECRET_KEYSJSON object. Use"public:*"or"secret:*"to accept any key in the set.