Setup Supabase with React
First, follow the complete Supabase React Quickstart Guide to set up your Supabase project and React integration.This will guide you through:
- Creating a Supabase project
- Setting up your React app with Supabase
- Configuring environment variables
- Creating a Supabase client
Migrate to Asymmetric JWT Tokens
For Chipi Pay to verify your users’ JWT tokens, your Supabase project must use asymmetric JWT signing.
- Go to your Supabase project dashboard
- Navigate to Settings > API
- Under “JWT Settings”, enable “Use asymmetric JWT signing”
- Follow the migration steps provided in the dashboard
Add Environment Variables
Register JWKS in Chipi Dashboard
Register your Supabase JWKS endpoint in the Chipi Dashboard:
- Go to Configure > Auth Provider
- Select Supabase as your provider
- Enter your Supabase project URL
- Click Verify & Save
