You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a parameter to set the default path for all cookies without the need to configure all cookie settings?
We have two applications that run in different subfolders (e.g. /app1 and /app2) on the same domain with different authentication parameters. Every time a user tries to login in both the other will be logged out (makes sense since the secrets differ).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Is there a parameter to set the default path for all cookies without the need to configure all cookie settings?
We have two applications that run in different subfolders (e.g. /app1 and /app2) on the same domain with different authentication parameters. Every time a user tries to login in both the other will be logged out (makes sense since the secrets differ).
I guess setting different cookie paths should fix this issue but we would need to add a lot of configuration as described here (https://next-auth.js.org/configuration/options#cookies).
It would be great if the basePath of the Next app would be used here, but another parameter would also be okay :)
Beta Was this translation helpful? Give feedback.
All reactions