mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Clarified React Native and Angular auth guides with improved environment setup and JWT validation guidance. * **New Features** * Added a React Native environment template for quickstart. * Example app now uses JWT claims for user state and display. * **Chores** * Replaced UI library components with native React Native components for compatibility. * Updated package configuration and dependency versions. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
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