Pattern for redirecting user back to last page before auth #13
Answered
by
TheRealFlyingCoder
squareborg
asked this question in
Q&A
-
Hey, is there a way to get the user back on the page they initiated auth on? I have app like
I'm unsure why there is two calls to authenticator.authenticate, and the initial successRedirect is ignored. Running the above results in a succesful auth but just dumps a json respone to the browser of the user details, instead of redirecting back to where was needed. Any help apprectiated. |
Beta Was this translation helpful? Give feedback.
Answered by
TheRealFlyingCoder
Mar 9, 2023
Replies: 1 comment
-
Super late, i'm sure you already figured this out, your callback route doesn't have Success or Failure redirects set, the code is in the readme :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TheRealFlyingCoder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Super late, i'm sure you already figured this out, your callback route doesn't have Success or Failure redirects set, the code is in the readme :)