Pass Redirect URL

Managing Redirects in Forms and Handling Cookies for Persistent Navigation
πŸ‘¨β€πŸ’Ό We need to get the redirectTo URL forwarded on to the /auth/github route. So first, you'll need to update
app/utils/connections.tsx
to have the ProviderConnectionForm component accept a redirectTo prop and render a hidden input with the redirectTo value. Then update its usage in
app/routes/_auth+/login.tsx
and
app/routes/_auth+/signup.tsx
to pass the redirectTo prop.
This one should be pretty quick. You can verify things are working by being logged out, and going to . There should be an input with that redirectTo value.

Please set the playground first

Loading "Pass Redirect URL"
Loading "Pass Redirect URL"