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

Function isWorkOSApiKeyFormat

server/src/middleware/api-key-format.ts:5–7  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

3 * WorkOS has used multiple key prefixes over time: 'wos_api_key_' (legacy) and 'sk_' (current).
4 */
5export function isWorkOSApiKeyFormat(token: string): boolean {
6 return token.startsWith('wos_api_key_') || token.startsWith('sk_');
7}

Callers 7

validateWorkOSApiKeyFunction · 0.85
validateWorkOSBearerJWTFunction · 0.85
hasValidAdminApiKeyFunction · 0.85
extractSealedSessionFunction · 0.85
orgIdFromBearerJwtFunction · 0.85
buildBearerAuthenticatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected