What it means
The 'Stay signed in?' (Keep me signed in) prompt interrupted the sign-in. Normal part of the flow.
Common causes
- The "Stay signed in?" or "Keep me signed in" prompt appeared during sign-in. Microsoft describes this as an expected part of the flow so the user can stay signed in on that browser.
Quick checks
- Open Entra admin center → Entra ID → Monitoring & health → Sign-in logs, find the failed event, and copy the Correlation ID, date, and time.
- Read the Failure reason and Additional Details on that event. Additional Details often includes the next step.
- Check the Conditional Access tab to see which policies applied or blocked the sign-in, and the Authentication Details tab for the methods that ran and their results.
How to fix it
If you are the user
- Choose Yes or No on the prompt and continue. No further action is needed for this code by itself.
If you are an admin
- Treat 50140 as an interrupt in the sign-in logs, not a failure, unless the user actually cannot get past the prompt.
- If you need to change whether users see this prompt, review the company branding / keep-me-signed-in settings for the tenant.
- If a user cannot proceed, collect the Correlation ID, Request ID, and error code from the log or the error page.
When to escalate
Escalate only if users cannot get past the Keep me signed in prompt or it appears in a broken loop. Include the Correlation ID, Request ID, date, and time.
Official references
- Microsoft's AADSTS error code reference (opens in a new tab)
- Official lookup for AADSTS50140 (opens in a new tab)
Descriptions on this page are summarized from Microsoft’s official error reference and the troubleshooting articles linked above. Error wording can change; use the official lookup if something here does not match what you see.