Limits and edge cases
Everything worth knowing before production, in one place.
Numbers
| What | Value |
|---|---|
| Apps per developer account | 10 |
| Clients per app | 5 |
| Callback URLs per client | 20 |
| Active service tokens per app | 5 |
| Authorization code | 60 seconds, single use |
| Access token | 5 minutes |
| Refresh token | 30 days from its issue, renewed at every refresh |
| Revocation reaches your server | about 5 seconds (pollMs) |
| Verifier refuses everything after | 60 seconds without reading revocations |
| Account events window | 90 days |
| Deletion grace period | 30 days |
| Sign-in log | 30 days |
| Change log | 1 year |
| Logo | PNG, JPEG or WebP, 256 KB |
/oauth/* rate limit | 120 requests per 10 minutes per IP |
| Directory lookups | 120 per hour per account |
| Embedded form height | 80 to 1600 pixels |
Sign-in
- One tab.
beginLoginkeeps the request insessionStorage, which belongs to the tab. Starting in one tab and finishing in another fails withLoginRejected. Opening the sign-in in a new tab withwindow.openhas the same problem: use the same tab, orcreateLoginRequestand keeppendingyourself. - Consent every time. The consent page is shown at every sign-in through the redirect; the embedded form shows your app's name instead.
- The keys must be open. If the user has a session on
account.novren.netbut their keys are closed (for example after reloading the account page), they type the password again before the consent: the keys are never stored in the browser. - Callback URL must match exactly.
https://myapp.example/callbackandhttps://myapp.example/callback/are different. - Denied consent arrives as
?error=access_denied: handle it beforecompleteLogin. - New device approval. If the user turned on new-device approval, a sign-in from a new device waits until they approve it from a known one.
Tokens
- Never two refreshes with the same token: it closes the session. Coordinate tabs.
- Password change signs the user out of every app. All chains end with
account-changed. - No access token in URLs or logs. Send it only in the
Authorizationheader. - Clock skew on your server makes valid tokens look expired: keep NTP on.
The app key
- Email recovery (password and 24 words both lost) creates new keys: data encrypted with the old
productKeycan't be decrypted. Cancelling the recovery restores the old keys. - Recovery with the 24 words keeps the keys.
- Same key on every client of your app, and on every device of the user.
- Different key for every app: you can't decrypt data of another app, even for the same user.
Accounts
- Shared identity: the same person uses one Novren ID for every app. Users that exist only in your app aren't available yet.
- The email can change: use
accountIdas your key. - Deletion is delayed 30 days; during them the account gets no tokens. You get the event at the end.
- Mandatory 2FA: users without a second factor past their deadline can't authorize apps until they set one up; the sign-in page guides them.
Embedded form
- Works only on the origin of the client's callback URL.
- A
Permissions-Policythat blockspublickey-credentials-getdisables passkeys in the frame. - No session is kept in the frame: users type their credentials every time.
Platforms
- Browsers: current Chrome, Edge, Firefox, Safari. Passkeys depend on the browser and the device.
- Desktop: the Rust crate, through the system browser. The embedded form can't be framed by a desktop window: its origin isn't an https callback URL.
- Mobile apps (Android, iOS): native SDKs are not available yet.
- Server: any runtime with
fetchand Web Crypto for@novren/id-verifier; other languages can verify the JWT with a library that supports EdDSA (Ed25519) and read the revocation feed from the HTTP API.