# Google Calendar Integration

Schedule meetings and sync calendar events with Google Calendar.

## Setup

1. Admin configures OAuth: Admin → Settings → Integrations → Google. The same Google OAuth credentials used for Gmail login also power Calendar access.
2. User connects: Settings → Integrations → click Connect on Google Calendar. Authorize calendar access.

## Features

- View Calendar: See upcoming events alongside your inbox
- Schedule Meetings: Create calendar events from within MailTrixy
- Auto-refresh: Calendar data syncs every 30 minutes via OAuth token refresh

## Google Cloud Setup

1. Go to Google Cloud Console
2. Create OAuth 2.0 credentials (or reuse existing Gmail OAuth)
3. Add scope: `https://www.googleapis.com/auth/calendar.readonly` and `https://www.googleapis.com/auth/calendar.events`
4. Set redirect URI: `https://yourdomain.com/oauth/google-calendar/callback`