© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
2 replies
meenie

Google Provider not respecting redirectedFrom query param

When utilizing
withMiddlewareAuth
withMiddlewareAuth
from
@supabase/auth-helpers-nextjs
@supabase/auth-helpers-nextjs
, a
redirectFrom
redirectFrom
param is provided so you can use it to redirect back to the protected page. When logging in via the Google provider, the parameter is lost on the way back. What is the best way to achieve the ability to redirect back to the previous page when logging in via Google?
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

"No query parameters in this request" in a parameterless query
SupabaseSSupabase / help-and-questions
2mo ago
Google provider not letting Client read users name.
SupabaseSSupabase / help-and-questions
3mo ago
Google provider in local development
SupabaseSSupabase / help-and-questions
3y ago
resetPasswordForEmail not respecting the redirectURL
SupabaseSSupabase / help-and-questions
8mo ago