Service tokens
A service token is your server's credential towards Novren ID. With it your server:
- reads the revocation feed (needed by
createTokenVerifier); - reads the account events (needed by
watchAccountEvents); - uses the service API: email and status of your users, how many they are.
It never sees users of other apps, and never any key.
Create one
The app's Service token tab → New token → a name (production, staging) → Create token (sudo mode).
The token is shown once, right after creation: 64 hexadecimal characters. Copy it into your server's environment, for example:
NOVREN_ID_SERVICE_TOKEN=3f9a… # 64 hex charactersNovren ID keeps only its SHA-256 hash and the last 4 characters, to help you recognise it in the list. If you lose it, create a new one and revoke the old one.
Use it
GET /service/stats HTTP/1.1
Host: id.novren.net
Authorization: Bearer 3f9a…The SDK does it for you when you pass serviceToken. A wrong, revoked or malformed token gets 401 with AUTH_FAILED.
Rotate it
- Create a new token.
- Deploy your server with the new one.
- Revoke the old one.
Two tokens of the same app work at the same time, so the rotation has no downtime.
Revoke it
Revoke next to the token: effective immediately, no sudo mode (it's a kill switch). A revoked token can't be restored.
Limits
- 5 active tokens per app.
- Each token belongs to one app.
- The list shows when each token was created and last used.