Nextauth as an external api to do authentication #11419
Unanswered
dangluan343
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I integrated successfully nextauth with nextjs route. But i have a custom server using express so i want to move nextauth into a controller instead of using api/auth/[...nextauth]/route.ts.
Is it possible? the code below is what i want instead of creating api/auth/[...nextauth]/route.ts.
Is it required to create api/auth/[...nextauth]/route.ts to make nextauth working? Cause i want to use the code above instead

Beta Was this translation helpful? Give feedback.
All reactions