© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
2 replies
COBEAS

Google OAuth redirect on Github Pages

I am really stuck on this one, I build an app that runs perfectly on my localhost
The login with Google works great and everything but now I deployed the app on GitHub Pages, it is accessible but when I try to log in with Google I get redirected to a URL containing the parameters from the login response and of course that URL doesn't exist so I get a 404 error.
I have set-up the redirect uri in Google Cloud and also in my Supabase account I set the site URL to the GitHub pages URL and a redirect to my localhost for development purposes

Does anyone have any idea where I can look for a solution?
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

google oauth redirect
SupabaseSSupabase / help-and-questions
4y ago
Google oauth redirect is broken
SupabaseSSupabase / help-and-questions
6mo ago
Google oauth error 400: redirect uri mismatch
SupabaseSSupabase / help-and-questions
14mo ago
Action on new Google OAuth registration
SupabaseSSupabase / help-and-questions
4y ago