bitwarden_auth/api/enums/two_factor_provider.rs
1use serde_repr::{Deserialize_repr, Serialize_repr};
2
3// TODO: This likely won't be limited to just API usage so consider moving to a more general
4// location when implementing 2FA support
5
6/// Represents the two-factor authentication providers supported by Bitwarden.
7#[derive(Serialize_repr, Deserialize_repr, PartialEq, Debug, Clone)]
8#[repr(u8)]
9pub enum TwoFactorProvider {
10 Authenticator = 0,
11 Email = 1,
12 Duo = 2,
13 Yubikey = 3,
14 U2f = 4,
15 Remember = 5,
16 OrganizationDuo = 6,
17 WebAuthn = 7,
18}