derekjwilliams / first-next-auth

https://first-next-auth-eight.vercel.app
0 stars 0 forks source link

Redirect to intended page after logging in #23

Closed derekjwilliams closed 5 months ago

derekjwilliams commented 6 months ago

Currently after logging in the user sees the "protected" page. Ideally the user would end up at the URL that they first entered, e.g. if the user is not logged in and navigates to https://first-next-auth-eight.vercel.app/servicerequests/new they should be taken to the login page, then after successful login, be redirected back to https://first-next-auth-eight.vercel.app/servicerequests/new

derekjwilliams commented 6 months ago

Modified to redirect to home after login, need to still redirect to the intended page