MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isPlatformAuth

Function isPlatformAuth

apps/cloud/src/auth/workos-auth-provider.ts:183–184  ·  view source on GitHub ↗
(value: BearerAuth)

Source from the content-addressed store, hash-verified

181export type BearerAuth = Principal | PlatformAuth | null;
182
183export const isPlatformAuth = (value: BearerAuth): value is PlatformAuth =>
184 value !== null && "kind" in value && value.kind === "platform";
185
186/**
187 * Resolve a `Bearer` credential into either a member `Principal` or the

Callers 3

authorizeTenantFunction · 0.90
resolveApiKeyPrincipalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected