© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
6 replies
François

OAuth Server with local CLI

CLI
I want to use the Supabase OAuth 2.1 Server. I've configured my local supabase instance as explained here https://supabase.com/docs/guides/auth/oauth-server/getting-started?queryGroups=oauth-setup&oauth-setup=cli&queryGroups=framework&framework=react. I have put a ngrok in front of supabase to make it accessible to the remote OAuth client in https.

The OAuth server seems to run well, but when the OAuth client calls the
/auth/v1/.well-known/openid-configuration
/auth/v1/.well-known/openid-configuration
path, the API response contains URLs in localhost (e.g.
"authorization_endpoint": "http://127.0.0.1:54321/auth/v1/oauth/authorize"
"authorization_endpoint": "http://127.0.0.1:54321/auth/v1/oauth/authorize"
). I would like the API to use my ngrok address instead. I haven't found any way to customize it in config.toml. Any hints?

I know I could test in production, but I'm old school, and I prefer to test locally first.
Getting Started with OAuth 2.1 Server | Supabase Docs
Learn how to enable OAuth 2.1 and register client applications in your Supabase project
Getting Started with OAuth 2.1 Server | Supabase Docs
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

Issue with Local CLI
SupabaseSSupabase / help-and-questions
7mo ago
Google OAuth "Bad request" error on local development with Supabase CLI
SupabaseSSupabase / help-and-questions
8mo ago
Supabase CLI Local
SupabaseSSupabase / help-and-questions
6mo ago
mcp server for local development gemini cli
SupabaseSSupabase / help-and-questions
4mo ago