Two-Factor Authentication & Trusted Devices
Protect your GoValid account with two-factor authentication (2FA) and trusted device management.
Two-Factor Authentication (2FA)
2FA adds an extra layer of security by requiring a verification code in addition to your password.
Enabling 2FA
- Log in to my.govalid.org
- Go to Account → Security
- Click Enable Two-Factor Authentication
- Scan the QR code with your authenticator app:
- Google Authenticator
- Authy
- Microsoft Authenticator
- Any TOTP-compatible app
- Enter the 6-digit code from your app to verify
- Save your backup codes (store them securely)
Using 2FA
After enabling 2FA, you'll be prompted for a verification code when:
- Logging in from a new device
- Logging in from a new location
- Performing sensitive actions (changing password, API key management)
Disabling 2FA
- Go to Account → Security
- Click Disable Two-Factor Authentication
- Enter your current 2FA code to confirm
- Enter your password to confirm
Backup Codes
When you enable 2FA, you receive backup codes:
- Each code can be used once
- Store them in a secure location
- Use them if you lose access to your authenticator app
- Generate new backup codes from the security settings
Trusted Devices
Trusted devices allow you to skip 2FA on devices you use regularly.
Trusting a Device
- Log in with your password and 2FA code
- Check the "Trust this device" option
- The device will be added to your trusted list
Managing Trusted Devices
- Go to Account → Security → Trusted Devices
- View all trusted devices with:
- Device name and browser
- Last used date
- Location
- Revoke trust for any device
When Trust is Revoked
Trust is automatically revoked when:
- You change your password
- You disable and re-enable 2FA
- You manually revoke the device
- The device hasn't been used for 90 days
Developer option: API access
Enable 2FA via API
curl -X POST https://api.govalid.org/api/v1/auth/2fa/enable/ \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"totp_code": "123456"
}'
Verify 2FA Code
curl -X POST https://api.govalid.org/api/v1/auth/2fa/verify/ \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"totp_code": "123456"
}'
Disable 2FA via API
curl -X POST https://api.govalid.org/api/v1/auth/2fa/disable/ \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"totp_code": "123456"
}'
Troubleshooting
Lost Authenticator App
- Use a backup code to log in
- Go to Account → Security
- Disable and re-enable 2FA
- Set up your authenticator app again
Lost Backup Codes
- Log in with your authenticator app
- Go to Account → Security
- Generate new backup codes
- Old backup codes will be invalidated
Can't Access Account
- Try backup codes first
- Contact support with account verification
- Provide identity verification documents if required
Best Practices
- Always enable 2FA: Essential for account security
- Save backup codes: Store in a password manager or secure location
- Trust only personal devices: Don't trust shared or public devices
- Review trusted devices regularly: Remove devices you no longer use
- Use a reliable authenticator app: Google Authenticator, Authy, or similar
Related
- Security Overview - Security architecture overview
- Risk-Based Auth - Login risk analysis
- Account & Billing - Account management