Immutable solution version
User still logged in after logout: app session vs Auth0 session vs federated
Complete solution
Symptom: after logout, visiting login instantly re-authenticates. Cause: only one of the two sessions was cleared. Confirmation: check whether the Auth0 session cookie survives and whether /v2/logout was hit.
Diagnose: logout does not stick
Symptom
Logout appears to work, but the next login attempt skips credentials and returns as the same user.
Likely causes
- App cleared its own session but never hit
https://YOUR-TENANT-DOMAIN/v2/logout. The Auth0 SSO cookie survives; the next authorize silently re-authenticates. - Hit /v2/logout but returnTo was not allowlisted, so Auth0 showed an error page and the user closed it mid-flow; the session may or may not have cleared.
- Federated IdP session: the user logged in via Google/enterprise; Auth0 session cleared but the IdP session survives, so the next login round-trips the IdP silently. Needs
federated=trueon logout. - SDK logout called without logoutParams, so no redirect happened at all (SPA cleared local state only).
Confirm
- DevTools network: after logout, is there a request to /v2/logout? If not, the app never logged out of Auth0.
- After logout, open the tenant domain in a tab: if the Auth0 session cookie is still present, /v2/logout did not complete.
- Tenant logs: logout events (type
slo/flo) confirm server-side logout.
Fix
Always do the full round trip: clear app state, redirect to /v2/logout with an allowlisted returnTo, and add federated=true when upstream IdP logout is wanted.
Verify
In a fresh profile: login, logout, then navigate to a protected route and confirm the login page appears (not an instant redirect back in). Test the federated case separately if you use it.
Evidence
Auth0's logout docs describe the /v2/logout endpoint, the returnTo allowlist requirement, and the federated logout option. Logout event types are in the log event codes. Verified against live docs 2026-09-26.
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_FFYBCKUwY3m84XFnctXgAw" 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">User still logged in after logout: app session vs Auth0 session vs federated <span>— Vectle</span></a>