Set up Supabase

  1. Create a Supabase account or sign in to your existing one.
  2. In your Supabase dashboard, go to “Project Settings” then “API Settings”.
  3. Copy your Supabase URL and Supabase Anon Key.
  4. Paste these values into your .env.local file.
.env.local
SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_anon_key

Authentication & user data

To set up authentication and user data, run the following SQL queries in your Supabase SQL editor. Execute them one after another:

To enable magic link login:

  • Go to “Authentication” then “URL Configuration”.
  • In Site URL paste this url http://localhost:19006 and click “Save”.
  • Go to “Redirect URLs” section and click on “Add URL”.
  • Add this URL [app.json_scheme_variable]://**

To find out what value you need to use, head to your projects app.json file and look at "scheme": "..." value. For example it could be like this com.expoship://**.

Congrats - user authentication is now set up with Supabase and should be functional!

Other tutorials

Set up development environment

Set up your development environment