* 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`.
()
| 19 | * constant leaves tests with a stale `undefined`. |
| 20 | */ |
| 21 | function workosClientId(): string | undefined { |
| 22 | return process.env.WORKOS_CLIENT_ID; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Resolver used to verify tokens. `createRemoteJWKSet` returns one of |
no outgoing calls
no test coverage detected