Google OAuth client
slotmirror needs an OAuth client in Google Cloud to connect Google accounts.
- In the Google Cloud console, create a project and enable the Google Calendar API.
- In Google Auth Platform, fill in Branding: the app name, the address of your Worker as
home page,
https://<your-worker>/privacyas privacy policy, and the domain of your Worker as authorized domain. - Under Data access, add the scopes
openid,email,profile,https://www.googleapis.com/auth/calendar.eventsandhttps://www.googleapis.com/auth/calendar.calendarlist.readonly. - Under Audience, publish the app to In production.
- Under Clients, create a Web application client with the redirect URI
https://<your-worker>/auth/google/callback. - Set
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRET:
pnpm wrangler secret put GOOGLE_CLIENT_IDpnpm wrangler secret put GOOGLE_CLIENT_SECRETUntil Google verifies the app, users see a warning that the app is not verified. For your own deployment, you can continue past it.