fix: totp login

This commit is contained in:
Lakhan Samani
2023-12-01 14:00:01 +05:30
parent 46d6f86ab0
commit 7f6ddca3fc
5 changed files with 45 additions and 34 deletions

View File

@@ -8,8 +8,10 @@ type AuthenticatorConfig struct {
ScannerImage string
// Secrets is the secret key
Secret string
// RecoveryCode is the secret key
// RecoveryCode is the list of recovery codes
RecoveryCodes []string
// RecoveryCodeMap is the map of recovery codes
RecoveryCodeMap map[string]bool
}
// Provider defines authenticators provider