Supabase Setup
Supabase provides a database with authentication and authorization features. We will be using Supabase to store the user's info mapped to their SuperTokens userId.
#
Step 1: Create a new Supabase ProjectFrom your Supabase dashboard, click New project.
Enter a Name for your Supabase project.
Enter a secure Database Password.
Select the same Region you host your app's backend in.
Click Create new project.
#
Step 2: Creating the user table in SupabaseFrom the sidebar menu in the Supabase dashboard, click Table editor, then New table.
Enter
users
as theName
field.Select
Enable Row Level Security (RLS).
Remove the default columns
Create two new columns:
- user_id as varchar as primary key
- email as varchar
Click
Save
to create the new table.