Skip to content
docs

BackupErrorCode

BackupErrorCode = "wrong-password" | "wrong-key" | "corrupted" | "unsupported" | "weak-password" | "invalid"

Defined in: errors.ts:8

  • wrong-password / wrong-key — the protector did not open (or the file was altered there).
  • corrupted — the protector opened but the payload or its metadata fails authentication.
  • unsupported — a format, version or algorithm this build does not read.
  • weak-password — refused when sealing; see MIN_PASSWORD_LENGTH.
  • invalid — malformed input (decode, a missing protector, out-of-bounds parameters).