pub enum VerifyError {
Rejected(String),
SubstrateTransient(String),
}Expand description
Verification failure surface — exactly two HTTP dispositions.
Richer per-substrate taxonomies (chat-auth’s break-glass dashboard
distinguishes JtiReplayed / SessionVersionStale / etc.) stay
inside the consumer’s super::AuthProvider impl and collapse to
one of these two variants at the SDK boundary. The Layer reads only
the disposition; the operator dashboard reads the substrate.
Variants§
Rejected(String)
Token rejected — invalid signature, expired, sub missing, session row missing or revoked, sv mismatch. Maps to 401 + add-based cookie clearance at the perimeter so the browser stops replaying a dead session.
SubstrateTransient(String)
Substrate transient — JWKS fetch failed with no usable cache, session-row DB unreachable, sv-axis cache substrate down. Maps to 503 with cookies preserved; the session may still be valid and the browser may retry.
Trait Implementations§
Source§impl Clone for VerifyError
impl Clone for VerifyError
Source§fn clone(&self) -> VerifyError
fn clone(&self) -> VerifyError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerifyError
impl Debug for VerifyError
Source§impl Display for VerifyError
impl Display for VerifyError
Source§impl Error for VerifyError
impl Error for VerifyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()