---
title: "Getting started with Flutter authentication"
description: "Google sign-in for a Flutter app works by using the google_sign_in package to obtain an OIDC ID token and access token."
url: "https://swe.quest/articles/getting-started-with-flutter-authentication-3f9d7f6366544382"
canonical: "https://supabase.com/blog/flutter-authentication"
source: "Supabase"
published: "2023-07-18"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["identity-auth","mobile"]
---

# Getting started with Flutter authentication

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2023-07-18, 8 min read, How-to. Original: [https://supabase.com/blog/flutter-authentication](https://supabase.com/blog/flutter-authentication)

## Summary

Google sign-in for a Flutter app works by using the google\_sign\_in package to obtain an OIDC ID token and access token. Those tokens are passed to Supabase Auth's signInWithIdToken, which creates a session and copies the token's claims into the user metadata. Setup requires iOS, Android and web OAuth client IDs from Google Cloud, with the web client ID registered in Supabase. iOS also needs a reversed client ID URL scheme in Info.plist, and 'Skip nonce checks' must be enabled because the iOS Google sign-in package cannot supply a nonce. The sample app has a login screen that listens for auth state changes and a profile screen that shows the avatar\_url and full\_name from the user metadata.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)

## Prerequisites

- Flutter basics
- Dart
- OAuth 2.0 basics ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))

## Keywords

Flutter, Supabase Auth, OpenID Connect, Google Sign-In, supabase\_flutter, OAuth 2.0

## Related posts

- [Securing your Flutter apps with Multi-Factor Authentication](https://swe.quest/articles/securing-your-flutter-apps-with-multi-factor-authentication-3b61ac67b5f2e6f9.md): Supabase · 2023-05-04 · Medium · 18 min read · Identity & auth, Mobile
  A Flutter app can require TOTP-based multi-factor authentication on top of email/password sign-in using Supabase Auth.
- [GitHub OAuth in your Python Flask app](https://swe.quest/articles/github-oauth-in-your-python-flask-app-15290baa39728dda.md): Supabase · 2023-11-21 · Medium · 3 min read · Identity & auth, Python
  Adding GitHub OAuth login to a Flask app with supabase-py comes down to three pieces: a custom FlaskSessionStorage class that extends gotrue's SyncSupportedStorage so the JWT session lives in Flask's session, a per-request Supabase client stored on Flask's g object with flow\_type set to PKCE for server-side OAuth handling, and two routes.
- [Build "Sign in with Your App" using Supabase Auth](https://swe.quest/articles/build-sign-in-with-your-app-using-supabase-auth-a42222eedce43362.md): Supabase · 2025-12-04 · Medium · 6 min read · Identity & auth, AI agents, PostgreSQL
  Supabase Auth can now act as an OAuth 2.1 and OpenID Connect identity provider, letting a project offer "Sign in with \[Your App\]" to third-party apps, MCP-based AI agents, partner integrations and enterprise SSO.
- [Supabase Flutter SDK 1.0 Developer Preview](https://swe.quest/articles/supabase-flutter-sdk-1-0-developer-preview-9e19816587705422.md): Supabase · 2022-08-02 · Medium · 5 min read · Mobile, Identity & auth, API design
  Supabase Flutter SDK 1.0 enters developer preview with a focus on developer experience.
- [Custom OIDC Providers for Supabase Auth](https://swe.quest/articles/custom-oidc-providers-for-supabase-auth-f58ec95541f5b5f1.md): Supabase · 2026-04-08 · Medium · 4 min read · Identity & auth
  Supabase Auth now supports connecting any standards-compliant OpenID Connect identity provider, beyond its 20+ built-in social logins, for cases like regional compliance IdPs, self-hosted GitHub Enterprise or GitLab, and niche SSO systems.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
