Skip to content

utf8Length

function utf8Length(token): number;

Defined in: src/token-identity.ts:401

The credential’s length in UTF-8 bytes – the unit MAX_TOKEN_BYTES is measured in, and not what String#length reports.

Parameter Type
token string

number