package components import "context" type BackupCodeVerifyData struct { ErrorMessage string } templ TwoFactorBackupVerify(ctx context.Context, data BackupCodeVerifyData) { @LayoutWithContext("Backup Code Verification", ctx) {
Enter one of your backup codes to verify your identity
if data.ErrorMessage != "" {Alternative to authenticator app
Backup codes were provided when you set up two-factor authentication. Each code can only be used once.
Backup codes provide an alternative way to verify your identity when you don't have access to your authenticator app. Each code can only be used once for security reasons.