Function createMiddlewareSupabaseClient
- createMiddlewareSupabaseClient<Database, SchemaName, Schema>(context, __namedParameters?): default<Database, SchemaName, Schema>
-
Type Parameters
-
Database = any
-
SchemaName extends string = "public" extends keyof Database
? "public"
: string & keyof Database
-
Schema extends GenericSchema = Database[SchemaName] extends GenericSchema
? any[any]
: any
Parameters
-
context: {
req: NextRequest;
res: NextResponse<unknown>;
}
-
req: NextRequest
-
res: NextResponse<unknown>
-
__namedParameters: {
cookieOptions?: CookieOptionsWithName;
options?: SupabaseClientOptionsWithoutAuth<SchemaName>;
supabaseKey?: string;
supabaseUrl?: string;
} = {}
-
Optional
cookieOptions?: CookieOptionsWithName
-
Optional
options?: SupabaseClientOptionsWithoutAuth<SchemaName>
-
Optional
supabaseKey?: string
-
Optional
supabaseUrl?: string
Returns default<Database, SchemaName, Schema>
Deprecated
utilize the
createMiddlewareClient
function instead