Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use consistent error type between doc, logger and error class (#…
…5046) * Keep error from being logged twice The same errors have been logged, firstly before throwing OAuthCallbackError, later in the catch-clause of it. This commit removes the former and lets the latter survive, because logging functionality seems better to reside in the same neighborhood. * doc: Merge CALLBACK_OAUTH_ERROR to OAUTH_CALLBACK_ERROR * doc: This particular error from openid-client comes with SIGNIN_OAUTH_ERROR * Provide logger with `providerId` Co-authored-by: Thang Vu <thvu@hey.com> Co-authored-by: Thang Vu <thvu@hey.com>
- Loading branch information
1 parent
448ec10
commit 3131971
Showing
3 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
3131971
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.
Successfully deployed to the following URLs:
next-auth – ./
next-auth-git-main-nextauthjs.vercel.app
next-auth-nextauthjs.vercel.app
www.next-auth.js.org
next-auth-phi-two.vercel.app
next-auth.js.org