Open wenboSky opened 8 years ago
Does this answer your question? https://passwordless.net/deepdive#successful-login-and-redirect-to-origin
I don't think so. the successRedirect of acceptToken is a 'fixed' path, but my case need redirect to a 'dynamic' path. My use case like this:
The question is how acceptToken middleware to get this 'Last visited UrL' as its options.successDirection in step4?
Hey,
That's exactly what enableOriginRedirect
is supposed to do. It overwrites successRedirect
with the last visited URL
Cheers
@florianheinemann , Hi guy, I want to append a 'returnUrl' into generated token/uid URL which is sent to user's email, so that client route can switch back to last visited url which was visited before 'SignIn' and requestToken. any idea? Thanks.