SupabaseAuthMiddlewareOptions
SolvaPay SDK / next/src / SupabaseAuthMiddlewareOptions
Interface: SupabaseAuthMiddlewareOptions
Defined in: packages/next/src/helpers/middleware.ts:169
Configuration options for Supabase authentication middleware
Properties
jwtSecret?
optionaljwtSecret:string
Defined in: packages/next/src/helpers/middleware.ts:174
Supabase JWT secret (from Supabase dashboard: Settings → API → JWT Secret) If not provided, will use SUPABASE_JWT_SECRET environment variable
publicRoutes?
optionalpublicRoutes:string[]
Defined in: packages/next/src/helpers/middleware.ts:180
Public routes that don't require authentication Routes are matched using pathname.startsWith()
userIdHeader?
optionaluserIdHeader:string
Defined in: packages/next/src/helpers/middleware.ts:185
Header name to store the user ID (default: 'x-user-id')