(account: ParsedServiceAccount)
| 86 | export type GCSDestinationCredentials = z.infer<typeof gcsCredentialsSchema> |
| 87 | |
| 88 | function buildJwt(account: ParsedServiceAccount): JWT { |
| 89 | return new JWT({ email: account.clientEmail, key: account.privateKey, scopes: [SCOPE] }) |
| 90 | } |
| 91 | |
| 92 | async function getAccessToken(jwt: JWT): Promise<string> { |
| 93 | const { token } = await jwt.getAccessToken() |
no outgoing calls