How to persist the signin callbackurl when user is redirected to the error page #2593
-
Question 💬I have an issue when ppl are entering the wrong credential, in the process of redirecting to the error page I lose the original callbackurl that the user is supposed to be redirected to after a successful signing. It is actually the same if I set the error page to be the signing page, that callbackUrl is lost if users login is failing. How can I persist that callback so the user can try again and be redirected to the original page on successful signing? Any workaround you guys can think of? much appreciated thanks! How to reproduce ☕️
Contributing 🙌🏽No, I am afraid I cannot help regarding this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I would rather not redirect to another page on error, and improve the ux by showing a message to the user. Check https://next-auth.js.org/getting-started/client#using-the-redirect-false-option |
Beta Was this translation helpful? Give feedback.
I would rather not redirect to another page on error, and improve the ux by showing a message to the user. Check https://next-auth.js.org/getting-started/client#using-the-redirect-false-option