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
Module not found: Package path ./core/lib/cookie is not exported from package /...long-yarn-path.../next-auth/ (see exports field in /...long-yarn-path.../next-auth/package.json)
Another option is to override the default cookie name with my own name, but the docs say:
You can specify one or more cookies with custom properties, but if you specify custom options for a cookie you must provide all the options for that cookie.
Meaning, I would have to copy-paste the cookie settings and hope they won't change in the future.
questionAsk how to do something or how something works
1 participant
Converted from issue
This discussion was converted from issue #6038 on December 13, 2022 20:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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.
-
Question 💬
Given:
sessionToken
on the api side, and I can get that fromreq.cookies[cookieNameHere]
.How do I implement that without hardcoding cookie name?
I've tried to
but you cannot actually import that:
Another option is to override the default cookie name with my own name, but the docs say:
Meaning, I would have to copy-paste the cookie settings and hope they won't change in the future.
How to reproduce ☕️
n/a?
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions