An error occurs when I set a redirect URL in the signIn callback #765
Unanswered
CK-Katsuhiro
asked this question in
Help
Replies: 1 comment
-
Am I missing any information? |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Your question
An error occurs when I set a redirect URL in the signIn callback
My
[. .nextauth].js
is as follows.The problem is the
return Promise.reject('/support')
part.Is there anything wrong with it?
I referred to this one.
https://next-auth.js.org/configuration/callbacks
What are you trying to do
I want to check the user account information when signing in and be redirected depending on the conditions.
true: go to the index("/") page.
false: go to support("/support") page.
Feedback
server error
[. .nextauth].js
UserAccessActiveCheck
returns Boolean.Beta Was this translation helpful? Give feedback.
All reactions