serializeCapability
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
serializeCapability(
cap):string
Defined in: packages/pipeline-casl/src/helpers/capability.ts:149
Collapse a Capability into a compact CapabilityString suitable for JWT claims, encrypted cookies, or session stores where payload size matters.
This is a runtime-only serialisation step — the inverse of parseCapabilityString.
The fields segment is appended when the capability restricts specific
fields, or as * when a reason segment follows it; otherwise it is omitted,
keeping the string compact for the common case.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string