You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue only occurs if the user is already logged in
The issue doesn't occur if the user navigates to the app URL manually after the error occurs. They are presented with the organization picker and the callback succeeds once they choose the org.
nextjs-auth0 version
3.5.0
Next.js version
14.0.4
Node.js version
20.9.0
The text was updated successfully, but these errors were encountered:
Checklist
Description
A
state mismatch
error occurs if logging back in immediately after log out.Reproduction
/api/auth/logout
endpoint)state mismatch
) during the callback phaseAdditional context
We use a custom auth domain, but it doesn't seem to influence the issue
We use the identifier-first flow
We let the Universal Login prompt the user for an organization they want to use when logging in
We use a catch-all middleware (which is why the user gets redirected to the login page immediately after logout):
HAR recording
The issue only occurs if the user is already logged in
The issue doesn't occur if the user navigates to the app URL manually after the error occurs. They are presented with the organization picker and the callback succeeds once they choose the org.
nextjs-auth0 version
3.5.0
Next.js version
14.0.4
Node.js version
20.9.0
The text was updated successfully, but these errors were encountered: