© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•8mo ago•
53 replies
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
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Preserving booking flow state across Supabase email auth redirect (Next.js)
SupabaseSSupabase / help-and-questions
6mo ago
Trouble Matching App Name for Google OAuth Verification (Supabase + Next.js)
SupabaseSSupabase / help-and-questions
4mo ago
Supabase Reset Password flow for Next.js
SupabaseSSupabase / help-and-questions
2w ago
Supabase with Next.js 13
SupabaseSSupabase / help-and-questions
4y ago