Docs · Operations

Enable Google sign-in

Email/password works out of the box. Adding "Continue with Google" needs a Google Cloud OAuth client. This guide is for the WooScraper operator (you), not the end customer.

1. Create the OAuth client

  1. Open Google Cloud → APIs & Services → Credentials.
  2. Click + Create credentials → OAuth client ID.
  3. Application type: Web application.
  4. Name: anything, e.g. WooScraper production.

2. Configure redirect URIs

Under Authorized redirect URIs, add both:

https://wooscraper.com/api/auth/callback/google
http://localhost:3000/api/auth/callback/google

Under Authorized JavaScript origins:

https://wooscraper.com
http://localhost:3000

3. Push to Vercel

Copy the Client ID and Secret Google shows you, then in your terminal:

vercel env add GOOGLE_CLIENT_ID production --value <client_id> --yes
vercel env add GOOGLE_CLIENT_SECRET production --value <client_secret> --yes
vercel env add GOOGLE_CLIENT_ID development --value <client_id> --yes
vercel env add GOOGLE_CLIENT_SECRET development --value <client_secret> --yes
vercel deploy --prod --yes

4. Verify

After the deploy, visit /sign-in. The "Continue with Google" button now leads to Google's OAuth consent. After consenting you land on /dashboard.

Already-existing accounts

If a user signs up with email/password first and later clicks "Continue with Google" using the same email, Better-Auth links the providers automatically — no duplicate user is created.