A simple React application demonstrating Supabase OAuth login with various providers.
User info is displayed after login (.auth.getUser() response).
- Clone this repository
- Install dependencies:
npm install - Create a
.envfile with your Supabase credentials:VITE_SUPABASE_URL=your-supabase-url VITE_SUPABASE_ANON_KEY=your-supabase-anon-key - Run the development server:
npm run dev
To enable OAuth providers, you need to:
- Go to your Supabase project dashboard
- Navigate to Authentication → Sign In / Providers
- Enable and configure the providers you want to use
- Add callback URLs for your application
To add new provider icons:
- Create SVG icons for your providers in
src/assets/icons/ - The icons should be named after the provider ID (e.g.,
github.svg,google.svg) - Add the provider to the
authProvidersarray insrc/data/authProviders.ts
MIT