Two-Factor Authentication
Two-factor authentication (2FA) adds a second step to sign-in: after your password, you also enter a time-based one-time code from an authenticator app. Signing in to the Kvery web app then needs the code as well, except in a browser you chose to remember. API calls with Basic Auth don't ask for it (see 2FA and API access).
How it works
Kvery uses TOTP (the standard behind apps like Google Authenticator, 1Password and Authy). When you enable 2FA, Kvery shows you a QR code and its key as text, which you add to your authenticator app. The app then generates a fresh 6-digit code every 30 seconds.
Enabling 2FA
- Open Profile in the user menu and select the 2FA tab. Kvery shows a QR code and, under it, the Key as text.
- Scan the QR code with your authenticator app, or type the key into it.
- Enter the current code from the app in the 2FA code field and click Save to turn 2FA on. A wrong code is refused with "Invalid 2FA code!", an empty one with "2FA code cannot be empty!".
Each time you open the 2FA tab, it shows a QR code and key that differ from the earlier ones: enter a code from the one you added last. Once 2FA is on, the tab shows Disable 2FA instead.
From then on, each login asks for your password and then a current code, except in a browser you chose to remember (see Remembering a browser). Turning 2FA on signs you out on every other browser and device; the browser you turned it on in stays signed in.
Signing in with 2FA
After entering your password, Kvery prompts for the 6-digit code. Open your authenticator app, read the current code for Kvery, and enter it.
Each code is accepted only once: to sign in again right away (for example in a second browser), wait for the next code. After 10 wrong codes, every code for your account — a correct one too — is refused with "Rate limit exceeded. Try again later." until 15 minutes have passed without a wrong code, wherever the attempts come from.
Remembering a browser
When you enter the code, you can tick Remember this browser. Kvery then skips the code in that browser for 30 days — you still sign in with your password. Only that browser is remembered (it gets a random token in a cookie); other browsers and devices keep asking for the code, and a remembered browser of someone else never counts for your account.
Kvery forgets all of your remembered browsers when you change your password (on the profile or with the Forgot your password? flow) and when you turn 2FA on or off. Clearing the browser's cookies forgets that browser too.
Disabling 2FA
You can turn 2FA off with Disable 2FA on the 2FA tab of your profile if you need to; Kvery asks for a current code to confirm ("Enter your 2FA code to confirm disabling 2FA:"). Do so only if you're sure — disabling it removes the second layer of protection.
When you turn 2FA on or off, after 10 code attempts within 15 minutes the check is paused for a while.
Password reset and 2FA
Resetting your password with the Forgot your password? flow turns 2FA off for your account, so you can sign in again even if you can no longer generate codes. After signing in, turn 2FA back on from your profile. A reset also signs you out on every device (see Password changes sign out your other devices).
Keep a backup of your authenticator (most apps support secure backup or multi-device sync) so you don't lose access if you change phones.
2FA and API access
The 2FA code is asked for when you sign in to Kvery. API calls with Basic Auth — your e-mail address and password, sent with every request — do not ask for it. Basic Auth also has the full access of your account and cannot be limited with scope tags, made read-only or set to hide the SQL. For scripts, integrations and AI assistants, use MCP tokens instead: they can be scoped, made read-only, set to hide the SQL of your queries, and revoked at any time.
Tips
- Pair 2FA with a strong, unique password for the best protection.
- For shared API access, prefer scoped tokens — for example MCP tokens — over sharing account credentials.