Skip to main content

Authentication

To set up Google authentication, obtain your GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET by following Google's instructions.

JWT_COOKIE_EXPIRES_IN=12h
COOKIE_SECURE=true

GOOGLE_CLIENT_ID=<your_google_client_id_here>
GOOGLE_CLIENT_SECRET=<your_google_client_secret_here>
GOOGLE_APPLICATION_CREDENTIALS=<your_google_application_credentials_here>

Get your Google API client ID

In addition Appointment system uses a service account that allows googleapis library to create calendar.

In order for this feature to work, you need to enable the calendar api in google cloud.

Enable Google Calendar API or run the following command

gcloud services enable calendar-json.googleapis.com --project=<your GCP project ID>

Make sure you assign the correct permissions to your service account, Please follow this medium link.

To create service account in GCP, please follow the #create-service-account

Related Links: