isIdsError
isIdsError(
value):value is IdsError
Defined in: src/error.ts:75
Type guard for IdsError. Checks a non-enumerable brand rather than bare instanceof
so it survives realm/dual-package duplication (ESM + CJS dual package hazard).
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is IdsError
Example
Section titled “Example”if (isIdsError(err)) { switch (err.code) { case "verification_failed": // ... case "invalid_id": // ... }}