@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, nonDateCols): T
Type parameters
Type parameter |
---|
T |
Parameters
Parameter | Type | Default value |
---|---|---|
obj | Record <string , any > | undefined |
nonDateCols | keyof T [] | [] |
Returns
T