[Question] How to Use Unique Cookie Names in Development #2311
-
I have two next apps running locally, mostly unrelated to each other. They both use next-auth. However, next-auth is confusing the cookies between the apps due to them sharing the same names on the same domain (localhost). When one server tries to read the cookie and fails, it unsets the cookie and causes both apps to be signed out. How can two or more next apps using next-auth run locally without conflicting with each other? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
https://next-auth.js.org/configuration/options#cookies See the defaults here: next-auth/src/server/lib/cookie.js Line 137 in 8bbffdd |
Beta Was this translation helpful? Give feedback.
https://next-auth.js.org/configuration/options#cookies
See the defaults here:
next-auth/src/server/lib/cookie.js
Line 137 in 8bbffdd