-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: normalize AuthError
message
#10964
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Ignored Deployments
|
@k-taro56 is attempting to deploy a commit to the authjs Team on Vercel. A member of the Team first needs to authorize it. |
AuthError
messageAuthError
message
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10964 +/- ##
==========================================
- Coverage 39.92% 39.92% -0.01%
==========================================
Files 179 179
Lines 28671 28669 -2
Branches 1243 1249 +6
==========================================
- Hits 11446 11445 -1
+ Misses 17225 17224 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for this change!
☕️ Reasoning
Messages passed to the constructor of a class that extends
AuthError
must not end with a period'.'
.Ending with a period
'.'
causes the constructor to normalize and add a double period'..'
.next-auth/packages/core/src/errors.ts
Line 76 in b420d36
I have checked that other error messages do not end with a period.
🧢 Checklist
🎫 Affected issues
No Issue
📌 Resources