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
- Open Google Cloud → APIs & Services → Credentials.
- Click + Create credentials → OAuth client ID.
- Application type: Web application.
- 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/googleUnder Authorized JavaScript origins:
https://wooscraper.com
http://localhost:30003. 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 --yes4. 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.