MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / workosClientId

Function workosClientId

server/src/auth/workos-jwt.ts:21–23  ·  view source on GitHub ↗

* Read `WORKOS_CLIENT_ID` at call time rather than at module import. * Vitest can evaluate `workos-jwt.ts` before a test file has had a * chance to set the env var, so capturing the value in a module-level * constant leaves tests with a stale `undefined`.

()

Source from the content-addressed store, hash-verified

19 * constant leaves tests with a stale `undefined`.
20 */
21function workosClientId(): string | undefined {
22 return process.env.WORKOS_CLIENT_ID;
23}
24
25/**
26 * Resolver used to verify tokens. `createRemoteJWKSet` returns one of

Callers 2

getJWKSFunction · 0.85
verifyWorkOSJWTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected