Limits & Lifetimes
One table to check against
Every limit the auth plane enforces. Where something is configurable, the default and the place to change it are named — several of these defaults are conservative enough to look like bugs if you do not know they are there.
Lifetimes
| What | Default | Configurable |
|---|---|---|
| Session (access) token | 90 seconds | Only via a JWT template, 30 s – 24 h |
| Session maximum lifetime | 7 days | Project Settings → Auth → Sessions |
| Inactivity timeout | 30 minutes | Same |
| One-time code (email or SMS) | 10 minutes | No |
| Second-factor challenge | 5 minutes | No |
| JWKS cache (client side) | 10 minutes | jwksCacheMs |
The 90-second token is the one worth understanding: it is exactly how long a revoked session can still pass offline verification. Lengthening it via a template widens that window proportionally.
Rate limits
| Bucket | Endpoints | Limit | Keyed by |
|---|---|---|---|
| Begin | auth-sign-up | 5 / 10 s | IP |
| Attempt | auth-attempt | 3 / 10 s | Identifier |
| Prepare | auth-prepare | 3 / 10 s | Identifier |
| Refresh | auth-token | 30 / 60 s | Session |
Limits are durable across isolates rather than per-instance, so they cannot be evaded by landing on a different worker. The attempt bucket is keyed by identifier rather than IP on purpose — that is the shape that actually resists credential stuffing, which arrives from many addresses at one account.
Lockout
Ten consecutive failed attempts lock an account for fifteen minutes. A locked account returns the same opaque 401 as a wrong password, so neither your client nor an attacker can see the lock. A successful sign-in clears the counter.
Caps and ceilings
| What | Limit | On exceeding |
|---|---|---|
ent claim | 64 entitlements | ent_truncated: true. Never silent — fall back to introspect |
Request body on /v1/auth-* | 64 KB | 413 at the edge, before a function runs |
| SCIM page size | 200 | Page with startIndex and count |
| Import reset emails per call | 200 (default 50) | Page deliberately |
| Backup codes per enrolment | 10 | Regenerate — the old set stops working |
| Password length | 8–72 by default | Configurable per project |
Two defaults that look like outages
Phone sign-in: +1 only, and 500 messages a month
+1, and a number outside it is refused before a message is queued — no send, no notification row, nothing distinguishable in the response. The monthly cap defaults to 500 messages. Both are in Project Settings → Auth → Phone sign-in, and both should be set deliberately before launch rather than discovered during one.Was this page helpful?
Or rate this page: