Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 5 min read Release mediumAdept

Supabase Flutter SDK 1.0 Developer Preview

Supabase Flutter SDK 1.0 enters developer preview with a focus on developer experience. Auth state persistence and deep link handling now happen automatically on initialization, replacing the removed SupabaseAuthState and SupabaseAuthRequiredState classes. Errors are now thrown instead of returned, since Dart lacks destructuring, and `.execute()` is deprecated so queries resolve directly to data. Deep links now work on macOS and Windows through app_links, Multiplayer realtime support is planned for the stable release, and a new Supabase Auth UI package provides prebuilt email, magic link and social login widgets.

Assumes: Flutter basicsDart async/await

Related posts

  • Securing your Flutter apps with Multi-Factor Authentication

    Supabase mediumAdept

    A Flutter app can require TOTP-based multi-factor authentication on top of email/password sign-in using Supabase Auth. The walkthrough covers setting up supabase_flutter and go_router, configuring iOS and Android deep links for email confirmation callbacks, and building signup, enrollment and login-verification pages. Enrollment calls mfa.enroll() to get a QR code and secret, then runs mfa.challenge() and mfa.verify() with the 6-digit code and refreshes the session. Login follows signInWithPassword() with a verification step before the user can reach protected content.

  • Supabase Auth: Identity Linking, Hooks, and HaveIBeenPwned integration

    Supabase mediumAdept

    Supabase Auth adds four features: manual Identity Linking via linkIdentity()/unlinkIdentity() for OAuth identities, session controls (time-boxed sessions, inactivity timeouts, single session per user on Pro and above), leaked password protection using the HaveIBeenPwned Pwned Passwords API with configurable password requirements, and Auth Hooks. Auth Hooks are Postgres functions that run synchronously at points such as access token generation, MFA verification and password verification, so they can add custom JWT claims or enforce custom security rules. Webhook-based hooks via Standard Webhooks are planned for Q1 2024. The GoTrue fork is also being renamed to Auth, with no breaking changes.

  • Getting started with React Native authentication

    Supabase mediumAdept

    Supabase Auth can be wired into an Expo/React Native app by configuring supabase-js with AsyncStorage for session persistence and disabling URL session detection. Sessions can optionally be encrypted with an AES-256 key held in Expo SecureStore, which works around SecureStore's 2048-byte limit. The guide includes code for email/password sign-in, plus OAuth and magic-link flows that rely on a custom URL scheme, deep linking and setSession from the redirect tokens. Sign in with Apple, Google sign-in and SMS/WhatsApp OTP get only brief mentions, with pointers to the docs.

  • supabase-js v2

    Supabase mediumAdept

    supabase-js v2 brings incremental quality-of-life changes over v1. Types are now generated from the database via the CLI and set once on the client. signIn() is split into signInWithPassword() and signInWithOtp(), server-side auth moves to auth.admin, and the auth library is now async to fix a multi-tab token refresh race condition that logged users out. insert/update/upsert no longer return data unless select() is appended, which avoids surprise failures under Row Level Security. Constructor config is scoped per sub-library, each sub-library gets typed errors, Edge Function invocations auto-detect content type, and a new channel() API replaces from().on() for realtime and Postgres change subscriptions. v1 gets security and maintenance patches for three months.

  • Flutter Tutorial: building a Flutter chat app

    Supabase mediumAdept

    A real-time single-room chat app can be built with Flutter on the frontend and Supabase as the entire backend, using the supabase_flutter SDK instead of a custom API. The walkthrough creates profiles and messages tables in Postgres with username validation constraints, adds the messages table to the supabase_realtime publication for live updates, initializes the Supabase client, routes users via a splash page based on auth session, and defines Dart data models plus a registration page. Authentication and row-level security are deferred to a second part.

The quest for software engineering knowledge.

Look:
Layout: