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

Allow setting custom cookie name instead of "authjs" #12199

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

paramaggarwal
Copy link
Contributor

@paramaggarwal paramaggarwal commented Nov 8, 2024

☕️ Reasoning

Currently the cookie is always authjs by default - this exposes the implementation detail of the cookie and advanced usecases should allow customising the name of the cookie to prevent malicious users from introspecting implementation details of the authentication mechanism used by a particular website.

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

📌 Resources

Copy link

vercel bot commented Nov 8, 2024

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

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 3:39am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Nov 8, 2024 3:39am

Copy link

vercel bot commented Nov 8, 2024

@paramaggarwal is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@paramaggarwal paramaggarwal changed the title Update cookie.ts Allow setting custom cookie name instead of "authjs" Nov 8, 2024
@github-actions github-actions bot added the core Refers to `@auth/core` label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant