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

Function isPlatformPrincipal

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

Source from the content-addressed store, hash-verified

78export type ResolvedPrincipal = Principal | PlatformPrincipal;
79
80export const isPlatformPrincipal = (value: ResolvedPrincipal): value is PlatformPrincipal =>
81 value.kind === "platform";
82
83/**
84 * 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