1
Accept `auth` options passed to `createPagesServerClient`
Source: supabase/supabase#15046 · opened by @imageck
Or at least set both autoRefreshToken & persistSession to false by default if the service_role key is provided.
An API route (Next.js /pages) set up to access the admin API for deleteUser() requires access to the current session context. createPagesServerClient is fit for this purpose. However, since it doesn't accept the auth options, persistSession cannot be set to true. And that is not ideal.
An API route (Next.js /pages) set up to access the admin API for deleteUser() requires access to the current session context. createPagesServerClient is fit for this purpose. However, since it doesn't accept the auth options, persistSession cannot be set to true. And that is not ideal.
No pledges yet. Be the first to back this.
Comments
Similar requests
Custom headers not being sent along with the requests in createPagesServerClient (NextJS)
2 votes · 0 comments
Accept pure SQL on postgrest, we will be able to use other ORMS on Vercel Edge Runtime
4 votes · 0 comments
IP of the entity that does auth, IP of entity that submits request
1 vote · 0 comments
Include resource field in OAuth authorization details response
1 vote · 0 comments
Add Storage Adapter For Chrome.Local.Storage Api
3 votes · 0 comments
No comments yet.