@auth/supabase-adapter
Official Supabase adapter for Auth.js / NextAuth.js.
Installation
npm install @supabase/supabase-js @auth/supabase-adapter
SupabaseAdapterOptions
This is the interface of the Supabase adapter options.
Properties
secret
secret: string;
The secret to grant access to the database
url
url: string;
The URL of your Supabase database
SupabaseAdapter()
SupabaseAdapter(options): Adapter
Parameters
Parameter | Type |
---|---|
options | SupabaseAdapterOptions |
Returns
format()
format<T>(obj): T
Type parameters
Type parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
obj | Record <string , any > |
Returns
T