Skip to main content

Account security

Set up two-factor authentication, sign in with a passkey, see which actions ask for it, and what to do if you lose your second factor.

View .md

Your zn account controls your API keys and, if you use Teams, your organization's policy, members and billing. This page explains how to protect it.

Verify your email address

Your email address is your identity in zn: your API keys, your plan and your organization are tied to it. Until you verify it, creating, showing or revoking API keys, buying a plan, opening the billing portal and cancelling a subscription are refused with Verify your email address, then sign in again. Use the link in the verification email, then sign out and sign in again. The dashboard shows the same message until you do; you stay signed in. If the email did not arrive, use Send the verification email again on that message (one email every 10 minutes, up to 5 a day; it comes from security@usezn.com), check your spam folder, or write to security@usezn.com from that address.

Your password

A password needs at least 8 characters and at least three of these: lowercase letters, uppercase letters, numbers and symbols. Passwords that appear in known data breaches are refused.

Only the first 72 bytes of a password are used. A longer password still works, but anything after that is ignored: 72 bytes is 72 plain letters or numbers, and fewer with accented letters or emoji.

After 10 wrong attempts in a row, sign-in to that account is blocked from that network address. Resetting your password unblocks it.

Two-factor authentication

Two-factor authentication asks for a second proof after your password: a code from an authenticator app, or a passkey or security key.

To set it up:

  1. Open Settings → Security in the dashboard.
  2. Select Set up two-factor authentication. You are taken to the sign-in page, where you add the authenticator app or the key.
  3. Keep the recovery code you are shown somewhere safe, away from the device you use as your second factor.
  4. You come back to Settings, which shows whether the current session signed in with two-factor authentication.

If you sign in with a passkey, that sign-in already counts as two-factor authentication: a passkey is tied to your device and protected by its lock (fingerprint, face or PIN).

If you set up two-factor authentication before 15 October 2026, you were not shown a recovery code: you are asked to save one the next time you sign in with your second factor.

To manage your methods, open Settings → Security:

  • Add a method: select Add a method and sign in again with the second factor you already have. The sign-in page then sets up the new one. You can have one method of each type: an authenticator app, a security key and this device (fingerprint, face or PIN).
  • New recovery code: select New recovery code, confirm it is you and copy the code. The new code replaces the old one and is shown only once, so keep it somewhere safe.
  • Remove a method: select Remove next to it and confirm. Removing a method asks for a recent sign-in with your second factor.

Team members cannot remove their last method: add another one first. A personal account can turn two-factor authentication off altogether by removing its last method and confirming Turn off.

We email the address of your account when a method is removed, when a new recovery code is created and when two-factor authentication is turned off. The email says what changed and when, and never contains a code or a link. If you did not make the change, sign in, check your methods and write to security@usezn.com. You can create up to 5 recovery codes and remove up to 10 methods a day.

Who needs it

Two-factor authentication is optional for personal accounts. It is required for Team members, and for anyone who has turned it on.

Your account Create or show again an API key Revoke an API key
Personal, without two-factor authentication a sign-in from the last 10 minutes a sign-in from the last 10 minutes
Personal, with two-factor authentication turned on a sign-in and a second-factor check, both from the last 10 minutes a sign-in from the last 10 minutes
Member of an organization, any role a sign-in and a second-factor check, both from the last 10 minutes a sign-in from the last 10 minutes

Revoking a key or an agent token never asks for a second factor, only a recent sign-in: it can only take access away, and when a laptop is lost or a key leaks, cutting it off at once matters more than one more check.

Actions that ask for it

Reading your data never asks for a second factor or a new sign-in. In an organization, owners and admins also need two-factor authentication for these actions:

Action Two-factor Sign-in from the last 10 minutes
Invite someone, make a member an admin or an auditor, publish a policy, create an organization token (agent token) or an installation join token, delete the organization, change organization settings, approve a change in the dashboard yes, from the last 10 minutes yes
Revoke an agent token no yes
Start a Team subscription, change the pay-as-you-go cap, open the billing portal (owner) yes no
Buy organization credits (owner, annual plan) yes no

Removing a member, revoking an invitation or an installation, turning an admin back into a member, and buying or cancelling a personal plan do not ask for it.

When an action needs it, the dashboard shows Two-factor authentication required (or Confirm it is you when only a recent sign-in is missing). Follow the button, sign in, and you come back to the same page; then repeat the action. You stay signed in if you cancel.

Where both are needed, the second-factor check must also be from the last 10 minutes: if you signed in recently but entered your code earlier than that, you are asked for the code again before the action goes ahead.

In an organization, owners and admins need two-factor authentication for the Teams actions above, so they should set it up as soon as they join.

Sensitive organization actions

Some organization actions can hand out access or remove data, so they ask for a recent second factor.

You need to have signed in, and completed two-factor authentication (an authenticator app code or a passkey), within the last 10 minutes to:

  • invite a member
  • make a member an admin or an auditor
  • publish a policy
  • create an organization token
  • create an installation join token
  • delete the organization
  • change organization settings
  • approve a change in the dashboard

If your last second factor is older than 10 minutes, the action is refused and the dashboard asks you to verify again. After you do, you come back to the same page: repeat the action.

These actions keep the lighter rule and are unchanged: changing seats, the pay-as-you-go cap and buying credits need a session that used two-factor authentication, with no time limit. Billing, the customer portal and Team checkout are unchanged. Revoking an organization token only needs a recent sign-in, so you can cut off access quickly in an incident.

If you have not set up a second factor, add one first in Settings → Security (an authenticator app or a passkey). Deleting your account while you belong to an organization also asks for a second factor. Changing your password does not ask for a second factor, unless the current password was entered wrong too many times: then, to continue, it asks for a recent second factor (or, without one and outside an organization, a recent sign-in).

A passkey sign-in counts as your second factor. If your account signs in only with a passkey and the dashboard still asks for two-factor authentication, follow the prompt: the sign-in page may ask you to set up an authenticator app or a security key as well, and the action goes ahead once that is done.

Personal accounts without an organization are not affected: API keys still need only a recent sign-in.

If you lose your second factor

  • You have your recovery code: on the two-factor step of the sign-in page, choose Try another method → Recovery code. You get a new recovery code afterwards; keep it.
  • You have neither: write to security@usezn.com from the email address of your account. We verify that the request comes from you before we remove your second factor. If you are an owner or admin of an organization, we also confirm it with another owner or admin of that organization, or through its billing contact. Then sign in and set up two-factor authentication again.

Keys and tokens

API keys and agent tokens are separate from your sign-in: anyone who has one can use it until it expires or is revoked, whether or not they know your password. If a laptop is lost or a key leaks, revoke it in the dashboard (API keys, or Teams → Agent tokens) and create a new one. zn-gate keeps agent tokens in the system keychain, out of agent configuration files.

Delete your account

Settings → Delete account asks you to type a confirmation word. If you have two-factor authentication, or you belong to an organization, you need a sign-in and a second-factor check from the last 10 minutes; a member of an organization without a second factor is asked to set one up first. Otherwise a sign-in from the last 10 minutes is enough. Your account is then marked for deletion, its API keys stop working at once, and we email you the date it will be deleted. You can cancel from the same page within 30 days, and we email you again. After that we delete your account and its data and email you when it is done.

These emails are always sent, whatever your notification settings.

After 30 days we delete your sign-in, account record, API keys, usage and evidence records, waitlist entry, Team membership and your support tickets with their messages. If you still have an active subscription, the deletion waits until it ends. If you own a Team organization, write to security@usezn.com to delete it; your account is deleted after that. Operational logs that may contain your email address expire within 90 days. Audit records of a Team organization stay with that organization until they expire. Polar, our payment provider, keeps invoices as tax law requires.