Files
Katerina Skroumpelou 30835c6f5a docs: remove deprecated processLock from react-native auth quickstart (#49471)
Removes `lock: processLock` from the React Native auth quickstart. Since
supabase-js 2.107.0 the client coordinates session refreshes without a
lock (single-flight dedupe within the client, with concurrent refresh
races resolved server-side), so the option is no longer needed; it is
deprecated and will be removed in v3, and upcoming 2.x releases log a
one-time deprecation warning when it is passed. The quickstart installs
`@supabase/supabase-js@^2`, so anyone following it gets the lockless
behavior out of the box.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Updated the React Native authentication quickstart to initialize the
client without the removed locking configuration, improving
compatibility with current authentication setup.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-24 13:36:05 +03:00
..

Supabase Auth with React Native

This example demonstrates how to use Supabase Auth with React Native and Expo.

Getting started

1. Create a Supabase project

Launch a new project in the Supabase Dashboard.

2. Configure environment variables

Create a .env file and populate with your Supabase connection variables:

You can find these in your Supabase Dashboard under Settings > API.

3. Install dependencies

npm install

4. Start the app

npm start

Follow the instructions in the terminal to open the app on your device or emulator.

Project structure

├── App.tsx                 # Main app component
├── components/
│   └── Auth.tsx            # Authentication form component
├── lib/
│   └── supabase.ts         # Supabase client configuration
├── app.json                # Expo configuration
├── package.json            # Dependencies
└── tsconfig.json           # TypeScript configuration

Features

  • Email/password sign up
  • Email/password sign in
  • Session persistence with AsyncStorage
  • Automatic token refresh

Learn more