---
title: "Getting started with React Native authentication"
description: "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."
url: "https://swe.quest/articles/getting-started-with-react-native-authentication-41c0c8f4add48c30"
canonical: "https://supabase.com/blog/react-native-authentication"
source: "Supabase"
published: "2023-11-16"
difficulty: "medium"
kind: "How-to"
reading_minutes: 9
tags: ["identity-auth","mobile","react","typescript"]
---

# Getting started with React Native authentication

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2023-11-16, 9 min read, How-to. Original: [https://supabase.com/blog/react-native-authentication](https://supabase.com/blog/react-native-authentication)

## Summary

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.

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)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)

## Prerequisites

- React Native basics ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- Expo
- OAuth redirect flows ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))

## Keywords

Supabase, supabase-js, Expo, React Native, AsyncStorage, Expo SecureStore, aes-js, Sign in with Apple

## Related posts

- [React Native file upload with Supabase Storage](https://swe.quest/articles/react-native-file-upload-with-supabase-storage-8dde735f893aa350.md): Supabase · 2023-08-01 · Medium · 14 min read · React, Mobile, Identity & auth, Storage systems
  A React Native app built with Expo SDK 49 and Expo Router v2 can sign users in with Supabase Auth and upload images to a private Supabase Storage bucket.
- [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.
- [Supabase Auth: SSO, Mobile, and Server-side support](https://swe.quest/articles/supabase-auth-sso-mobile-and-server-side-support-6a2bc9b0f4a5ef26.md): Supabase · 2023-04-13 · Medium · 7 min read · Identity & auth, PostgreSQL, Multi-tenancy, Mobile
  Supabase Auth adds SAML 2.0 single sign-on, a PKCE authorization flow for server-side rendering and mobile apps, and native Sign in with Apple on iOS.
- [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.
- [Authentication in Ionic Angular with Supabase](https://swe.quest/articles/authentication-in-ionic-angular-with-supabase-d02eec9140b86035.md): Supabase · 2022-11-08 · Medium · 33 min read · Identity & auth, Frontend, Mobile, PostgreSQL, TypeScript
  An Ionic Angular realtime messaging app built on Supabase demonstrates email/password signup and login, magic link authentication for web and native mobile, and route protection with Angular guards.

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)
