© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2w ago•
11 replies
joco

Supabase UI Social Auth not redirecting to protected route

auth
Hi everyone 👋 I’m having a bit of trouble with the new Supabase UI Social Auth (GitHub) in a Next.js App Router setup and could use some guidance.

I’m using Supabase’s OAuth flow and the login itself works, but after authenticating with GitHub, it doesn’t redirect to my protected route.

I can see this in my terminal:

GET /auth/oauth?code=xxxx&next=%2Fprotected 307
GET /auth/oauth?code=xxxx&next=%2Fprotected 307


Any advice or references would be greatly appreciated. Thank you! 🙏
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

Similar Threads

Auth redirects to protected route
SupabaseSSupabase / help-and-questions
4y ago
Supabase Auth UI
SupabaseSSupabase / help-and-questions
4y ago
WeWeb And Google Supabase Auth Not redirecting/Authenticating
SupabaseSSupabase / help-and-questions
2mo ago
Supabase Auth Social Logins Timing out
SupabaseSSupabase / help-and-questions
5mo ago