#[non_exhaustive]pub enum ReverificationLevel {
FirstFactor,
SecondFactor,
MultiFactor,
Other(OtherReverificationLevel),
}Expand description
The authentication-factor level a step-up reverification requires, mirroring
clerk-js’s SessionVerificationLevel.
Serializes as the raw clerk-js level string. The enum is
#[non_exhaustive]; levels this crate has not named yet round-trip through
ReverificationLevel::Other, mirroring
SessionTaskKey.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FirstFactor
A single first-factor credential (e.g. password) must be re-verified.
SecondFactor
A single second-factor credential (e.g. TOTP) must be re-verified.
MultiFactor
Both a first and a second factor must be re-verified.
Other(OtherReverificationLevel)
A level string this crate has not named yet.
Only produced by the From<&str>/From<String>/FromStr conversions, which
canonicalize known levels to their named variants first. The payload is
an OtherReverificationLevel with no public constructor, so an Other
can never alias a named variant.
Implementations§
Trait Implementations§
Source§impl Clone for ReverificationLevel
impl Clone for ReverificationLevel
Source§fn clone(&self) -> ReverificationLevel
fn clone(&self) -> ReverificationLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more