1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Issuance errors for the JWT engine.
//!
//! Mirror of `AuthError` shape: 1 variant per named failure mode so audit
//! logs read the cause off the variant name without a lookup table
//! (project_jwt_phase2_design Decision 2). Variants are additive across
//! phases — Phase 3 covers the issue-side baseline; Phase 4+ append.
//!
//! `KeyMismatch` carries both kids in its data because the audit signal
//! ("which mismatch") is far more useful than just the fact of mismatch
//! — operators want to see at a glance which IssueConfig misnames its
//! signing key. KeyParse / JsonEncode wrap the underlying library error
//! as a String so the public API stays free of `jsonwebtoken::*` types
//! (M51 boundary; the lint enforcement lands Phase 7).