MCPcopy Create free account
hub / github.com/Noumena-Network/code / hasManagedInferenceScope

Function hasManagedInferenceScope

src/auth/runtime/AuthRuntime.ts:49–51  ·  view source on GitHub ↗
(scopes: string[] | undefined)

Source from the content-addressed store, hash-verified

47}
48
49function hasManagedInferenceScope(scopes: string[] | undefined): boolean {
50 return Boolean(scopes?.includes('user:inference'))
51}
52
53function isStoredManagedTokenExpired(expiresAt: number | null): boolean {
54 if (expiresAt === null || Number.isNaN(expiresAt)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected