FeatureFuel
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.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests