SupabaseS
Supabase7mo ago
Stanre

Supabase Oauth PKCE flow works but having trouble with redirect. (Next.js + React)

Environment details:
  • @supabase 2.22.4
  • @GNU make 3.81
I'm trying to redirect a users after successful GoogleOauth sign in but am getting stuck. Once the oauth works I'm immediately redirected to my landing page app/page.tsx rather than the targeted location: /app/pages/home.tsx.

Here's what I've attempted:
  1. adding next: '/home' path as a query parameter in lib/auth-actions.ts file
  2. adding redirects: within my supabase project yet that hasn't worked either.
```
image.png
Was this page helpful?