Skip to content

Files

Latest commit

 

History

History

supabase-functions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Supabase functions secured with Unkey

This examples shows you, how you can secure your Supabase functions with Unkey.

Usage

  1. Go to unkey.dev and create an account, make sure you have an account with Supabase.

  2. Run the example

supabase start
supabase functions serve
  1. Create an API Key in Unkey in the Dashboard or API

  2. 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'