Home Reference Source

Function

Static Public Summary
public

CWTFromBase64(base64String: string): CWT | null

Parse a base64-encoded JSON string into a CWT object

public

CWTFromJSON(jsonString: string): CWT | null

Parse a JSON string into a CWT object

Static Public

public CWTFromBase64(base64String: string): CWT | null source

Parse a base64-encoded JSON string into a CWT object

Params:

NameTypeAttributeDescription
base64String string

Return:

CWT | null

Return a CWT object or null if the string does not represent a valid Consent Web Token

public CWTFromJSON(jsonString: string): CWT | null source

Parse a JSON string into a CWT object

Params:

NameTypeAttributeDescription
jsonString string

Return:

CWT | null

Return a CWT object or null if the JSON does not represent a valid Consent Web Token