Skip to content

Commit

Permalink
supabase
Browse files Browse the repository at this point in the history
  • Loading branch information
dopiotrek committed Oct 12, 2024
1 parent f2c21f0 commit decfd59
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 16 deletions.
29 changes: 29 additions & 0 deletions supabase/google_login_local_dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Setup Google Social Login in the Local Environment

- Google Social Login
- Supabase Local Environment (Docker)

## Step 1: Configure Google OAuth in config.toml

[auth.external.google]
enabled = true
client_id = "env(GOOGLE_CLIENT_ID)"
secret = "env(GOOGLE_CLIENT_SECRET)"
redirect_uri = "http://localhost:54321/auth/v1/callback"
url = ""

## Step 2: Stop and start Supabase

- supabase stop
- supabase start

## Configure Google Oath 2.0 in Google Cloud Console

- Authorized JavaScript origins:
- http://localhost:5173
- https://yourcustomdomain.com
- Authorized redirect URIs:
- https://<project_id>.supabase.co/auth/v1/callback
- http://localhost:54321/auth/v1/callback
- http://localhost:5173/auth/callback
- http://localhost:54321/auth/v1/callback
16 changes: 0 additions & 16 deletions supabase/google_login_local_dev.md(

This file was deleted.

0 comments on commit decfd59

Please sign in to comment.