Skip to content

Example on how to use Supabase Social Authentication with the Expo Router v2

Notifications You must be signed in to change notification settings

rnnyrk/expo-router-supabase-social-auth

Repository files navigation

Supabase Social Authentication with Expo Router

A blog post that explains the process of creating Google/Apple logins with Supabase, accompanies this repository.

With this repository, I wanted to give an example and guidance on how to use Supabase Social Authentication together with Expo Router v2. Both Google Authentication as well as Apple Authentication are covered.

Some of the used technologies are opinionated and can be replaced:

  • Styled Components
  • Prettier (with sorting config)
  • ESLint

How to use

git clone git@github.com:rnnyrk/expo-router-supabase-social-auth.git YOUR_PROJECT
cd YOUR_PROJECT
npm install

Create an environment file on .env.development and fill in the required properties:

EXPO_PUBLIC_SUPABASE_URL_DEV=
EXPO_PUBLIC_SUPABASE_PUBLIC_KEY_DEV=
EAS_PROJECT_ID=

Create a build for a simulator

  • iOS eas build --profile simulator --platform ios
  • Android eas build --profile development --platform android

OR Create a build for a device

  • iOS eas device:create && eas build --profile development --platform ios
  • Android eas build --profile development --platform android

Submit the build:

  • iOS APP_ENV=staging eas submit -p ios --profile staging

About

Example on how to use Supabase Social Authentication with the Expo Router v2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published