MCPcopy
hub / github.com/simstudioai/sim / buildJwt

Function buildJwt

apps/sim/lib/data-drains/destinations/bigquery.ts:78–80  ·  view source on GitHub ↗
(account: ParsedServiceAccount)

Source from the content-addressed store, hash-verified

76export type BigQueryDestinationCredentials = z.infer<typeof bigqueryCredentialsSchema>
77
78function buildJwt(account: ParsedServiceAccount): JWT {
79 return new JWT({ email: account.clientEmail, key: account.privateKey, scopes: SCOPES })
80}
81
82async function getAccessToken(jwt: JWT, forceRefresh = false): Promise<string> {
83 if (forceRefresh) {

Callers 2

testFunction · 0.70
openSessionFunction · 0.70

Calls

no outgoing calls

Tested by 1

testFunction · 0.56