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

fix: avoid infinite loop in error handlers #2647

Merged
merged 4 commits into from
Sep 2, 2021

Conversation

balazsorban44
Copy link
Member

Although a catch-all error handler like the one in src/errors seemed to be a good starting point, it proves to be a half-baked solution. Amongst other things, it caused the bug this PR is fixing, but it essentially also makes the error stack point to the wrong place. We will have to handle errors lower, at their root, when the adapter/event methods are called.

This PR fixes a problem reported in #2622

@vercel
Copy link

vercel bot commented Sep 2, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nextauthjs/next-auth/7pG5JPeXpBStYfdk78Te1Y2F9X4q
✅ Preview: Failed

[Deployment for b95a46d failed]

@github-actions github-actions bot added the core Refers to `@auth/core` label Sep 2, 2021
@balazsorban44 balazsorban44 merged commit 245567b into next Sep 2, 2021
@balazsorban44 balazsorban44 deleted the fix/error-handler-loop branch September 2, 2021 23:25
mnphpexpert added a commit to mnphpexpert/next-auth that referenced this pull request Sep 2, 2024
* fix: avoid infinite loop in error handlers

* chore(dev): remove mongodb folder
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

1 participant