Security model
What Novren ID guarantees to your app and your users, how, and where the guarantees stop.
What stays on the user's device
- The password. It is stretched with Argon2id in the browser and becomes keys and a signature. The server receives the signature, not the password. A leak of the Novren ID database contains no password hashes to crack.
- The root key and, through it, every app key. They are opened only on
account.novren.net, in the user's browser.
What Novren ID protects for you
| Threat | Protection |
|---|---|
| Stolen authorization code | PKCE: useless without the verifier, valid 60 s, single use |
| Login CSRF | state, checked by the SDK |
| Stolen access token | valid 5 minutes, only for your app (aud), revocable |
| Stolen refresh token | rotation and reuse detection: the session closes |
| Phishing for the password | passkeys and two-factor authentication; the account page lives on a single origin |
| Bots and throwaway accounts | Turnstile on sign-up and recovery, disposable email domains refused |
| Breached passwords | refused at sign-up (Have I Been Pwned, k-anonymity: only 5 hex characters of a hash leave the device), optionally at sign-in too |
| Your service token leaked | it reads only your users; revoke it from the console, effective immediately |
Two-factor authentication is mandatory on Novren ID: new accounts set it up at once, existing accounts get a grace period. Your app doesn't have to ask for a second factor.
What stays your responsibility
- Your front end. Code running on your pages can use
productKey(it can't extract it, but it can calldecrypt). Keep a strict Content Security Policy and few third-party scripts. - Your server must verify every request with
@novren/id-verifier, not trust a user id sent by the client. - The service token stays on the server, never in a repository.
- Deleted accounts: when a user deletes their Novren ID or your app, you delete their data. See Deleted accounts.
Privacy choices
- The email reaches your app in the URL fragment, not through your server. Your server can read it with the service API when it needs it (notifications).
- Your server sees only your users. For any other account the service API answers 404, exactly like for an account that doesn't exist: you can't learn who uses other apps.
- Logs keep browser and operating system, never IP addresses.
Limits of the model
Written openly, because they matter for your design:
- Email recovery creates new keys: data encrypted with the old app key is lost. See The app key.
- The account page is the trust anchor. If
account.novren.netserved malicious code, it could read keys at the next sign-in. This is the classic limit of web-based end-to-end encryption; desktop apps that open the browser have the same dependency. - Shared identity: a user has one Novren ID for every app that uses it. You can't have users that exist only in your app (yet).