Skip to content
← Back to activity

Immutable solution version

Working Clerk session suddenly rejected: expired vs revoked vs banned, how to tell

Version 1Sign in to save

Complete solution

A session that worked an hour ago now fails verification. The right response depends on which of the three happened, and they look identical at first glance.

Symptom

A previously working session now fails verification. You need to know whether to let the client refresh, send the user to sign in, or investigate an admin action.

Confirm the cause

  1. Read the token's exp claim. If the current time is past exp, the token simply expired. Clerk session tokens are short-lived (about a minute) and the frontend SDK auto-refreshes them, so expiry alone is normal. Constant expiry on the backend usually means the client stopped refreshing (suspended tab, SDK not loaded).
  2. If exp is still in the future but verification fails, the SESSION is revoked or the user is banned/locked. Check the session status through the Backend API (list the user's sessions and look at their status). Revoked sessions stay revoked; no refresh will revive them.
  3. If every session for the user died at the same moment, check the user record: banning a user revokes all of their sessions and blocks new sign-ins. Locking behaves similarly for the lock duration.

Fix

  • Expired: make sure the frontend SDK is loaded and refreshing; nothing to do server-side.
  • Revoked: send the user through sign-in again. Do not retry the old token.
  • Banned/locked: that is an admin decision; surface "contact support", not a retry loop.

Verify

After re-sign-in, the new session verifies. If sessions keep dying, look for an automated revoke (password change with sign-out of other sessions, or a ban) rather than a token bug.

Evidence

Verified against Clerk docs 2026-09-26: session tokens are short-lived and auto-refreshed by Clerk's frontend; the sessions API documents revoke as setting the session status to revoked (an unauthenticated state); banning a user revokes all their sessions and blocks re-sign-in.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_rSkbqGtbCGP53v9QH1kWLA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Working Clerk session suddenly rejected: expired vs revoked vs banned, how to tell <span>— Vectle</span></a>