(Photoshopped) Social Login with Supabase Auth in Chrome Extension (Firebase alternative)
- Fork this repository.
- Go to
chrome://extensions/
. - Click "Load Unpacked" and select your repo directory.
- The extension should show up.
- Go to Google Cloud Console and create a project.
- Search for "APIs & Services" > "Credentials".
- You must create your Consent Screen before creating Credentials for your Supabase Project.
- Under "External", fill in App Information (App Name, Dev Email, Support Email should be sufficient) and select Scopes (3).
- Now you can create Credentials > OAuth Client ID
- Select "Application Type" > "Web Application" to generate your Client ID and Client Secret.
- Go to Supabase and create your project.
- Hover and click the "Authentication" tab > "Providers" tab. Click on "Google Provider".
- Fill in Client ID and Client Secret from your Google Cloud Console (Ignore Authorized Client ID, this is the case with main branch only which have issues).
- In
SupaLogin.js
, fill in the Supabase URL and Anon Key from your Supabase Settings > API.
- Click the refresh logo to update your extension with the filled information.
- Click the "Login with Supabase" button.
Links:
Note: Main branch is the implementation following https://supabase.com/docs/guides/auth/social-login/auth-google?platform=chrome-extensions, feel free to try it out but you might encounter the "impossible" error.
Note: URL Configuration works just fine for lone Chrome Extension however it does not work well with Web app and Chrome Extension as Redirect. Filed Issue/Bug here supabase/supabase#18290