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

chore: add custom error messages #9801

Closed
wants to merge 1 commit into from

Conversation

Greek
Copy link

@Greek Greek commented Jan 25, 2024

☕️ Reasoning

NextAuth (Auth.JS) is missing behavior from v4 that enables users to pass custom error messages to display to the client. People have expressed similar concerns trying to return custom auth errors in v5 and this PR aims to fix those concerns. It's a necessary feature to most that was lost in v5.

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

See #8999, #9249.

📌 Resources

Signed-off-by: Andreas <a@ndy.sh>
Copy link

vercel bot commented Jan 25, 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 Jan 25, 2024 6:28pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Jan 25, 2024 6:28pm

@github-actions github-actions bot added the core Refers to `@auth/core` label Jan 25, 2024
@Greek Greek marked this pull request as ready for review January 25, 2024 18:29
@Greek Greek changed the title [DRAFT] chore: add custom error messages chore: add custom error messages Jan 25, 2024
@balazsorban44
Copy link
Member

Thanks! I'm closing this for now, see my proposal here: #9099 (comment) please leave a comment!

(You were actually very close here #8999 (reply in thread) 😝)

It will need to include a bit more parts than this PR. 🙏

@Greek Greek deleted the chore/add-custom-error-messages branch January 28, 2024 23:20
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.

None yet

2 participants