MCPcopy Index your code
hub / github.com/simstudioai/sim / buildJwt

Function buildJwt

apps/sim/lib/data-drains/destinations/gcs.ts:88–90  ·  view source on GitHub ↗
(account: ParsedServiceAccount)

Source from the content-addressed store, hash-verified

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

Callers 2

testFunction · 0.70
openSessionFunction · 0.70

Calls

no outgoing calls

Tested by 1

testFunction · 0.56