docs: update google calendar guide (#26549)
* docs: update google calendar doc * update page name and include .env in seed-app-store.ts * add onre more step * update
This commit is contained in:
@@ -17,10 +17,10 @@ title: "Google"
|
||||
Go to the [OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent) from the side pane. Select the app type (Internal or External) and enter the basic app details on the first page.
|
||||
</Step>
|
||||
<Step title="Add Calendar Scopes">
|
||||
On the Scopes page, select "Add or Remove Scopes". Search for Calendar.event and select the scopes with values `.../auth/calendar.events`, `.../auth/calendar.readonly`, and then click "Update".
|
||||
On the Data Access page, select "Add or Remove Scopes". Search for Calendar.event and select the scopes with values `.../auth/calendar.events`, `.../auth/calendar.readonly`, and then click "Update".
|
||||
</Step>
|
||||
<Step title="Add Test Users">
|
||||
On the Test Users page, add the Google account(s) you'll be using. Verify details on the last page to complete the consent screen configuration.
|
||||
If User type is external on the Audience page, add the Google account(s) you'll be using. Verify details on the last page to complete the consent screen configuration.
|
||||
</Step>
|
||||
<Step title="Create OAuth Credentials">
|
||||
From the side pane, select [Credentials](https://console.cloud.google.com/apis/credentials) and then "Create Credentials". Choose "OAuth Client ID".
|
||||
@@ -46,6 +46,13 @@ title: "Google"
|
||||
```
|
||||
This will configure the Google integration as an Internal app, restricting login access.
|
||||
</Step>
|
||||
<Step title="Set the CAL_COM environment variable">
|
||||
In the `.env` file, set the following environment variable:
|
||||
```
|
||||
CALCOM_ENV="local"
|
||||
```
|
||||
This will allow you to test the Google integration locally. Do it only when you are testing Cal.com locally.
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
### **Adding Google Calendar to Cal.com App Store**
|
||||
|
||||
@@ -10,6 +10,7 @@ import prisma from "@calcom/prisma";
|
||||
import type { Prisma } from "@calcom/prisma/client";
|
||||
import { AppCategories } from "@calcom/prisma/enums";
|
||||
|
||||
dotEnv.config({ path: path.resolve(__dirname, "../.env") });
|
||||
dotEnv.config({ path: path.resolve(__dirname, "../.env.appStore") });
|
||||
|
||||
async function createApp(
|
||||
|
||||
Reference in New Issue
Block a user