package components import "context" type TwoFactorSetupData struct { QRCodeURL string Secret string BackupCodes []string ErrorMessage string } templ TwoFactorSetup(ctx context.Context, data TwoFactorSetupData) { @LayoutWithContext("Two-Factor Authentication Setup", ctx) {
Enhance your account security with 2FA
Scan this QR code with your authenticator app (Google Authenticator, Authy, etc.)
Can't scan the QR code? Use this code instead:
{ data.Secret }
Store these backup codes in a safe place. You can use them to access your account if you lose your authenticator device.