This examples shows you, how you can secure your Supabase functions with Unkey.
-
Go to unkey.dev and create an account, make sure you have an account with Supabase.
-
Run the example
supabase start
supabase functions serve
-
Create an API Key in Unkey in the Dashboard or API
-
Access the Hello world function via CURL.
curl -XPOST -H 'Authorization: Bearer <SUPABASE_FUNCTION_JWT' -H 'x-unkey-api-key: <API_KEY_FROM_UNKEY' -H "Content-type: application/json" 'http://localhost:54321/functions/v1/hello-world'
- Getting Started - A quickstart guide to Unkey