How to run next-auth on seperated frontend and backend servers with express.js #3445
Unanswered
casparwamik
asked this question in
Help
Replies: 3 comments
-
Check out #2294 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same problem here! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am trying to implement the same setup for my college project, did you got any success in this. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hello everyone,
The issue is the following: I have programmed a MERN full stack application, the frontend is a NextJS application, the backend is an ExpressJS API.
The problem: I would like to use next-auth for user authentication, with jwt tokens. Since I also plan to add more frontend applications later (React-Native), I wanted to strictly detach the backend from the frontend and run it on its own server, also to have single points of failure.
How can I run next-auth in my FullStack application on separate frontend and backend servers, and integrate it into an express backend?
I already looked at this post, tried it, however it didn't work (probably due to new version?).
#531
Thanks for any support
Beta Was this translation helpful? Give feedback.
All reactions