login_required Authentication Origin: Application & API Last updated 14 Oct 2026

OIDC Error: login_required / interaction_required / consent_required (silent authentication failed)

A silent sign-in (prompt=none, iframe or refresh) couldn’t complete because the user must interact — no session, consent needed, or third-party cookies blocked.

Exact message you may see Login requiredSilent sign-in request was sent but no user is signed in
Seen on: REST API

Meaning

SPAs renew tokens silently in hidden iframes. Safari ITP, Chrome third-party cookie blocking, expired IdP sessions or new consent requirements return login_required/interaction_required. Use refresh tokens with rotation or redirect for interactive login.

Common causes

  • IdP session expired (user must log in)
  • Third-party cookies blocked for the iframe
  • New consent or MFA required (interaction_required)
  • Custom domain not configured for the IdP (cross-site cookies)

⚡ Quick fix

  1. Fall back to an interactive redirect on these errors
  2. Use refresh tokens (rotating) instead of iframe renewal
  3. Put the IdP on a custom subdomain of your site

Detailed fix by platform

JavaScript

  1. javascript
    try { await auth0.getTokenSilently(); }
    catch (e) { if (["login_required", "consent_required", "interaction_required"].includes(e.error)) await auth0.loginWithRedirect(); }

How to diagnose

  1. Error — Which code?
  2. Browser — Third-party cookies blocked?
  3. Session — IdP session alive?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

431 — HTTP 431 Request Header Fields Too Large (HTTP)431access_denied — OAuth 2.0 Error: access_denied (The user or authorization server denied the request) (Authentication)access_deniedCookies are blocked — WordPress login: Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress. (WordPress)Cookies are blockedExpiredToken — AWS: ExpiredToken — The security token included in the request is expired (AWS)ExpiredTokenFailed to serialize user into session — Passport.js: Error: Failed to serialize user into session (Authentication)Failed to serialize u…invalid csrf token — ForbiddenError: invalid csrf token (EBADCSRFTOKEN) (Authentication)invalid csrf tokeninvalid_grant — OAuth 2.0 Error: invalid_grant (Authentication)invalid_grantnonce mismatch — OIDC Error: nonce mismatch / ID token nonce did not match / unexpected nonce (Authentication)nonce mismatchlogin_req…

Explore the map of this error Full error map →

🧠 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.