@orangecheck/agent-core / decodeScopesPayload
Function: decodeScopesPayload()
function decodeScopesPayload(bytes: Uint8Array): string[];
Defined in: agent-core/src/private-scope.ts:38
Inverse of encodeScopesPayload. Returns the canonicalized scope array.
Throws if the payload doesn't decode to a string array.
Parameters
| Parameter | Type |
|---|---|
bytes | Uint8Array |
Returns
string[]