Skip to content
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

Conversation

halfmatthalfcat
Copy link
Contributor

@halfmatthalfcat halfmatthalfcat commented Sep 11, 2022

☕️ Reasoning

Instead of a random UUID, I want to leverage cuid as the session token. This PR allows the ability to define a custom generateSessionToken function and return the custom session token. Leverage original logic (random UUID) by default.

🧢 Checklist

  • Documentation
  • Ready to be merged

🎫 Affected issues

Please scout and link issues that might be solved by this PR.

Fixes: N/A

📌 Resources

@vercel
Copy link

vercel bot commented Sep 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
next-auth ⬜️ Ignored (Inspect) Sep 25, 2022 at 9:25AM (UTC)

@github-actions github-actions bot added core Refers to `@auth/core` TypeScript Issues relating to TypeScript labels Sep 11, 2022
@vercel vercel bot temporarily deployed to Preview September 11, 2022 14:28 Inactive
@vercel vercel bot temporarily deployed to Preview September 13, 2022 01:00 Inactive
@halfmatthalfcat
Copy link
Contributor Author

@lluia @ThangHuuVu @ndom91 thoughts?

@vercel vercel bot temporarily deployed to Preview September 15, 2022 03:58 Inactive
packages/next-auth/src/core/types.ts Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview September 17, 2022 12:42 Inactive
@halfmatthalfcat halfmatthalfcat requested review from ThangHuuVu and removed request for ubbe-xyz and ndom91 September 17, 2022 12:49
@vercel vercel bot temporarily deployed to Preview September 17, 2022 12:52 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core` TypeScript Issues relating to TypeScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants