Skip to content
1 min read · 52 words

Variable: E_INVALID_INITIAL_IDENTITY_VALUE

ts
const E_INVALID_INITIAL_IDENTITY_VALUE: CreatedException<[]>;

Thrown when an @nhtio/adk!Identity is initialised with a value that fails schema validation.

Remarks

Identity requires both identifier (string or number) and representation (string or @nhtio/adk!Tokenizable) to be present and of the correct type. Passing an incomplete or incorrectly typed object signals a programming error in the caller.