NotBeforeError: jwt not active (nbf claim in the future)
The token’s nbf (not before) time is in the future for the verifying server — usually clock skew between servers.
jwt not activeThe token is not yet valid (nbf) Meaning
If the issuer’s clock is ahead of the API server’s, freshly issued tokens look “not active yet”. Sync clocks (NTP) and allow a small clockTolerance.
Common causes
- Clock skew between issuer and verifier
- Container/VM clock drift
- Token deliberately issued with future nbf
⚡ Quick fix
- Sync server clocks with NTP
- Set clockTolerance (e.g. 30 s) in verification
- Check nbf vs server time
Detailed fix by platform
JavaScript
jwt.verify(token, key, { algorithms: ["RS256"], clockTolerance: 30 });
Linux
- bash
timedatectl status sudo timedatectl set-ntp true
How to diagnose
- Times — nbf vs server time (date -u)
- Clocks — NTP synced?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Authentication
- disallowed_useragent Google OAuth: Error 403: disallowed_useragent (sign-in from an embedded WebView)
- redirect_uri_mismatch OAuth Error: redirect_uri_mismatch
- auth/too-many-requests Firebase Auth: auth/too-many-requests — Access to this account has been temporarily disabled due to many failed login attempts
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 14 Oct 2026