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
Add option for custom generateSessionToken #5328
Merged
balazsorban44
merged 3 commits into
nextauthjs:main
from
halfmatthalfcat:custom-generateSessionToken
Sep 25, 2022
Merged
Add option for custom generateSessionToken #5328
balazsorban44
merged 3 commits into
nextauthjs:main
from
halfmatthalfcat:custom-generateSessionToken
Sep 25, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
halfmatthalfcat
requested review from
ubbe-xyz,
ThangHuuVu and
ndom91
as code owners
September 11, 2022 14:27
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
github-actions
bot
added
core
Refers to `@auth/core`
TypeScript
Issues relating to TypeScript
labels
Sep 11, 2022
halfmatthalfcat
force-pushed
the
custom-generateSessionToken
branch
from
September 13, 2022 00:59
7b13aa5
to
d7e2e81
Compare
@lluia @ThangHuuVu @ndom91 thoughts? |
ThangHuuVu
requested changes
Sep 17, 2022
halfmatthalfcat
force-pushed
the
custom-generateSessionToken
branch
from
September 17, 2022 12:40
01cad38
to
40b5b93
Compare
halfmatthalfcat
requested review from
ThangHuuVu
and removed request for
ubbe-xyz and
ndom91
September 17, 2022 12:49
halfmatthalfcat
force-pushed
the
custom-generateSessionToken
branch
from
September 17, 2022 12:50
5ffedf8
to
577f688
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
☕️ Reasoning
Instead of a random UUID, I want to leverage
cuid
as the session token. This PR allows the ability to define a customgenerateSessionToken
function and return the custom session token. Leverage original logic (random UUID) by default.🧢 Checklist
🎫 Affected issues
Please scout and link issues that might be solved by this PR.
Fixes: N/A
📌 Resources