ReadonlyclaimsReadonlyisReadonlyvalueReturns true if the principal has a claim with the given type.
If value is provided, also checks the claim value matches.
Optionalvalue: stringReturns true if the principal has the given role. Checks the "role" claim by default; supports both single-value and array-value claims.
StaticanonymousCreates an anonymous (unauthenticated) principal.
Principal — represents an authenticated (or anonymous) user identity.
Generic over
T— the user-defined principal shape, typically declared as a@cleverbrush/schemaobject schema.