Is your account by chance enforced for per-user MFA? I run into a similar issue and had to reset the per-user MFA status, details are here: https://www.michev.info/blog/post/6242/the-strange-case-of-a-login-loop-caused-by-phantom-proofup-requirements
Connect-SPOService : No valid OAuth 2.0 authentication session exists ?
I have not been able to connect using the command “Connect-SPOService -Url https://company-admin.sharepoint.com” for several months now.
I pick account
Enter password
click "Next"
And get this empty "working..." window then.
Then I get error: We couldn't sign you in. Please try again.
I get this error in powershell:
I tried out different devices. The last one was a newly installed computer with Windows 11.
I get the error with Powershell 5 and 7.
How to solve that problem?
1 additional answer
Sort by: Most helpful
-
Jaden Dossous 0 Reputation points
2025-03-12T14:23:17.7133333+00:00 Hello Mattais,
I know this post is a bit old but I ran into this same issue and the fix for me was using the options -UseWindowsPowerShell when importing the module. It also needs to installed in Powershell five as well.