How to handle error thrown when user presses "cancel" on Discord sign in #3682
Unanswered
TechnoVisionDev
asked this question in
Help
Replies: 3 comments 4 replies
-
Anybody have any insight into this? I still am struggling to understand how to handle this! |
Beta Was this translation helpful? Give feedback.
2 replies
-
'Howdy! I'm also experiencing this issue and I'd preferably like to handle the same error - I don't want to implement my own OAuth request function. Any news on this so far? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try to add
If user clicks cancel button, it will redirect to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
There seems to be a default behavior with NextAuth when using the Discord provider where, when the authorization page appears, if the user clicks "cancel" instead of "authorize", an error is thrown in the console and it redirects to the brandless sign in page. I expect users to press cancel, how can I handle this error so that it redirects to my homepage instead of to the brandless sign in page? I tried adding the pages option and setting a route for 'error' but that did not work.
How to reproduce ☕️
Use NextAuth with a Discord provider and click "cancel" during the authorization process.
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions