Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
API reference@auth/supabase-adapter

@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

ParameterType
optionsSupabaseAdapterOptions

Returns

Adapter


format()

format<T>(obj): T

Type parameters

Type parameter
T

Parameters

ParameterType
objRecord<string, any>

Returns

T

Auth.js © Balázs Orbán and Team - 2024