Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/server / ws / isSubjectAllowed

Function: isSubjectAllowed()

ts
function isSubjectAllowed(granted, subject): boolean;

Defined in: packages/server/src/ws/subjects.ts:132

Compatibility shim — re-exports scopeMatches so consumers don't have to learn the security package's surface.

Parameters

ParameterType
grantedreadonly ParsedScope[]
subjectParsedSubject

Returns

boolean

Stable