-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix generateSessionToken #6200
fix generateSessionToken #6200
Conversation
@OrJDev is attempting to deploy a commit to the authjs Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Strange, so I figure the initial way shuold have worked. Btw there was a small typo in your PR description above. It shuold be the following:
In the rest of the adapter code, its always just called as |
Testing it all in the a REPL though, this update looks correct. Calling it like |
Ye i do have a typo I don't really know how to explain the changes because it makes absolutely no sense. |
19c6807
to
3be7bb7
Compare
☕️ Reasoning
🧢 Checklist
🎫 Affected issues
Please scout and link issues that might be solved by this PR.
Fixes: INSERT_ISSUE_LINK_HERE
📌 Resources
closes #6076
Looks like when passing the generateSessionToken an arrow function that calls the randomUUID function instead of passing the randomUUID function directly, solves this problem.
So instead of
It should be