Skip to content

Commit 42cd370

Browse files
committed
Prepare for YouTube integration
1 parent 0546e65 commit 42cd370

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

init.sh

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export const SECRETS: Secrets = {
1616
ZOOM_CLIENT_ID: "PHWkXfbFSjWV5oNin9Djg",
1717
ZOOM_CLIENT_SECRET: "...",
1818
ZOOM_SECRET_TOKEN: "...",
19+
20+
GOOGLE_CLIENT_ID: "...",
21+
GOOGLE_CLIENT_SECRET: "...",
1922
};
2023
2124
HERE

src/constants.ts

+3
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ export const ZOOM_API_URL = "https://api.zoom.us/v2";
22
export const ZOOM_AUTHORIZE_URL = "https://zoom.us/oauth/authorize";
33
export const ZOOM_TOKEN_URL = "https://zoom.us/oauth/token";
44
export const ZOOM_USER_ID = "410467";
5+
6+
export const GOOGLE_AUTHORIZE_URL = "https://accounts.google.com/o/oauth2/auth";
7+
export const GOOGLE_TOKEN_URL = "https://accounts.google.com/o/oauth2/token";

src/interfaces.ts

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export interface Secrets {
66
ZOOM_CLIENT_ID: string;
77
ZOOM_CLIENT_SECRET: string;
88
ZOOM_SECRET_TOKEN: string;
9+
10+
GOOGLE_CLIENT_ID: string;
11+
GOOGLE_CLIENT_SECRET: string;
912
}
1013

1114
export interface GlobalContext {

src/oauthServer.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
*/
88

99
import axios from "axios";
10-
import { ZOOM_AUTHORIZE_URL, ZOOM_TOKEN_URL } from "./constants";
10+
import {
11+
GOOGLE_AUTHORIZE_URL,
12+
GOOGLE_TOKEN_URL,
13+
ZOOM_AUTHORIZE_URL,
14+
ZOOM_TOKEN_URL,
15+
} from "./constants";
1116
import { GlobalContext } from "./interfaces";
1217
import express from "express";
1318
import { stringify } from "node:querystring";

0 commit comments

Comments
 (0)