-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.