Infrastructure high complexity mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Handles OAuth 2.0 authorization flow for Google Calendar integration, separate from the device-native calendar path. Manages token acquisition, refresh, and secure storage, and wraps the Google Calendar REST API for creating, updating, and reading events. Requires a configured Google Cloud project with Calendar API enabled.

Feature: Calendar Sync

google-calendar-oauth-adapter

Responsibilities

  • Initiate and complete the Google OAuth 2.0 authorization code flow
  • Securely store and refresh Google OAuth access and refresh tokens
  • Provide authenticated Google Calendar REST API calls (create, update, delete, list events)
  • Handle token expiry and silent re-authorization
  • Support disconnecting a Google account and revoking access

Interfaces

initiateOAuthFlow()
handleOAuthCallback(authCode)
refreshAccessToken()
revokeAccess()
getConnectedAccount()
createEvent(calendarId, eventPayload)
updateEvent(calendarId, eventId, eventPayload)
deleteEvent(calendarId, eventId)
listEvents(calendarId, startDate, endDate)
listCalendars()

Relationships

Dependents (1)

Components that depend on this component