MCPcopy Create free account
hub / github.com/cloudflare/pages-plugins / constructor

Method constructor

packages/google-chat/src/api/index.ts:12–23  ·  view source on GitHub ↗
({
    credentials: { client_email, private_key },
    tokenExpiration = ONE_MINUTE * 15,
  }: {
    credentials: { client_email: string; private_key: string };
    tokenExpiration?: number;
  })

Source from the content-addressed store, hash-verified

10 private tokenExpiration: number;
11
12 constructor({
13 credentials: { client_email, private_key },
14 tokenExpiration = ONE_MINUTE * 15,
15 }: {
16 credentials: { client_email: string; private_key: string };
17 tokenExpiration?: number;
18 }) {
19 this.emailAddress = client_email;
20 this.privateKey = private_key;
21
22 this.tokenExpiration = tokenExpiration;
23 }
24
25 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
26 // @ts-ignore

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected