Open reveurguy opened 1 year ago
Bard has a pages based answer for this prompt that you might be able to implement in the app router: Using https://vercel.com/templates/next.js/subscription-starter redirect after login open the account page.
@reveurguy did you figure this out. I am trying to do the same thing.
Change this line in "app/auth/callback/route.ts" with the route/url you want to redirect to:
// URL to redirect to after sign in process completes
return NextResponse.redirect(requestUrl.origin)
I am using Google provider for auth. When i signin, I want to redirect to /dashboard. How can i do that? Currently it redirects to homepage only. Also is there any common setting to manage the redirect because i want my default redirect after any auth signup to /dashboard.