sergiodxa / remix-auth-oauth2

A OAuth2Strategy for Remix Auth
https://sergiodxa.github.io/remix-auth-oauth2/
MIT License
160 stars 63 forks source link

Implement dynamic redirect after login #46

Closed kaciakmaciak closed 5 months ago

kaciakmaciak commented 1 year ago

https://github.com/sergiodxa/remix-auth-oauth2/issues/45

sergiodxa commented 5 months ago

You can keep the returnTo in a session before calling authenticate to start the auth flow, then read from the session in the callback route and use it in successRedirect.