Auth - infinite loop when signing in with external provider
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 22h 21m
- Merged PRs (30d)
- 586
Description
### Environment
SaaS ([https://sentry.io/]())
### Steps to Reproduce
1. Log into Account A with external provider. Account A has access to Org A.
2. Sign out of Account A, and sign into Account B, which doesn't have access to Org A. Don't sign out of Account B
3. Attempt to sign into Org A with Account A.
### Expected Result
User is able to sign into Org A with Account A. Account B is signed out.
OR
Display an error message informing the user that they are signed in with Account B, which does not have access to Org A.
### Actual Result
https://github.com/user-attachments/assets/b7cdb74f-5b75-4315-b86e-7573ea849503
The user is thrown into an infinite loop with no indication of what might be wrong.
### Product Area
Sign In
### Link
*No response*
### DSN
*No response*
### Version
*No response*
Contributor guide
Assessment
This issue has not been assessed yet.