How to get pathname inside auth-options? #12497
Unanswered
ngotrongphuc
asked this question in
Help
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.
-
I'm implementing next-auth for 2 different routes in the same project, their accessToken stored in different session cookies, so basically they will have 2 distinct auth-options. But i want to use just one auth-options and make it dynamically based on the current path, if the current path is
/
which is homepage it will use the homepage's config, otherwise if the current path is/subpage
it will use the subpage's config. The problem is I can't find a way to get the current path name inside auth-options.Beta Was this translation helpful? Give feedback.
All reactions