Menu

Supabase Auth OAuth in Flutter — Google, GitHub, and Apple Sign-In End-to-End
📰

Supabase Auth OAuth in Flutter — Google, GitHub, and Apple Sign-In End-to-End

DEV Community: flutter·kanta13jp1·9 days ago
#dfkfxMqc
#devtoflutter#devto#dev#auth#supabase
Long article (1694 words) — no AI summary yet.
Reading 0:00
15s threshold

Supabase Auth OAuth in Flutter — Google, GitHub, and Apple Sign-In End-to-End

Social login is the single highest-leverage UX improvement you can make for a new product. At Jibun Inc., adding Google and GitHub OAuth tripled our sign-up conversion rate overnight. This guide covers the full implementation: provider setup in each developer console, Supabase dashboard config, Flutter auth flow, callback handling, and social button UI patterns.

How Supabase Auth OAuth Works

Supabase Auth acts as an OAuth 2.0 / OIDC proxy. Understanding this flow saves hours of debugging:

Flutter App │ │ (1) supabase.auth.signInWithOAuth(provider) ▼ Supabase Auth ──────────────────────────────► Google / GitHub / Apple (2) redirect to provider │ │ (3) auth code ◄───────────────┘ Supabase Auth │ │ (4) exchange code → JWT + refresh token ▼ Flutter App (via callback URL)

Enter fullscreen mode

Exit fullscreen mode

You need two callback URLs registered at every provider:

https://<project-ref>.supabase.co/auth/v1/callback —…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.