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

Function isPlatformPrincipal

packages/core/api/src/server/identity.ts:105–106  ·  view source on GitHub ↗
(value: ResolvedPrincipal)

Source from the content-addressed store, hash-verified

103export type ResolvedPrincipal = Principal | PlatformPrincipal;
104
105export const isPlatformPrincipal = (value: ResolvedPrincipal): value is PlatformPrincipal =>
106 value.kind === "platform";
107
108/**
109 * The single `AuthContext` every executor-API handler reads. The roles-bearing

Callers 4

authenticateSessionFunction · 0.90
test-app.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected