feat(mfa): TOTP secrets, recovery codes and factor lookup
This commit is contained in:
@@ -22,6 +22,10 @@ type UserMFA struct {
|
||||
// vantage-shared's backup.ciphertextFields - change one, change the other.
|
||||
TOTPSecretEnc string `bson:"totp_secret_enc,omitempty" json:"-"`
|
||||
|
||||
// TOTPPendingEnc holds a secret from an unconfirmed StartTOTPSetup call.
|
||||
// Transient: never mirrored into vantage-shared's backup.ciphertextFields.
|
||||
TOTPPendingEnc string `bson:"totp_pending_enc,omitempty" json:"-"`
|
||||
|
||||
// TOTPConfirmedAt nil means setup was started but never confirmed, which
|
||||
// does not count as an enrolled factor.
|
||||
TOTPConfirmedAt *time.Time `bson:"totp_confirmed_at,omitempty" json:"totp_confirmed_at,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user