Accept auth options passed to createPagesServerClient
#15046
Unanswered
imageck
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Or at least set both
autoRefreshToken&persistSessionto false by default if theservice_rolekey is provided.An API route (Next.js
/pages) set up to access the admin API fordeleteUser()requires access to the current session context.createPagesServerClientis fit for this purpose. However, since it doesn't accept theauthoptions,persistSessioncannot be set totrue. And that is not ideal.All reactions