Google Calendar Setup

Create OAuth credentials

Go to the Google Cloud Console, create a new project (or use an existing one), and navigate to APIs & Services > Credentials. Click Create Credentials > OAuth client ID. Select Web application as the application type.

Set the redirect URI

Add your Vercel deployment URL as an authorized redirect URI:

https://your-app.vercel.app/api/auth/google/callback

Replace `your-app.vercel.app` with your actual Vercel deployment URL. If you use a custom domain, add that as a redirect URI as well.

Add environment variables

Copy the Client ID and Client Secret from the Google Cloud Console and add them to your Vercel environment variables:

GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-client-secret

Authorize calendar access

On first use, LifeOS prompts you to authorize Google Calendar access. Grant read-write scope so the app can create, update, and delete events bidirectionally. If you previously authorized with read-only scope, revoke access in your Google account settings and re-authorize through the app to get the read-write scope.