My Win10 install is ages old, with much playing of new versions of things over the years – After several hours of trying everything listed, what finally worked for me was forcing the reinstall of xbox identity provider.
Assumption – the Xbox app is already installed, and when you start it, you can login to it.
Close the Xbox app
Open powershell as an administrator (search, "powershell", right click on windows powershell and choose run as administrator
run "Get-appxpackage Microsoft.XboxIdentityProvider | Remove-AppxPackage", without the quotes.
This will remove xbox identify provider
Open Xbox app. At the bottom, it will complain about a missing dependency, 'xbox identity provider'. Allow it to install it.
My Win10 install is ages old, with much playing of new versions of things over the years – After several hours of trying everything listed, what finally worked for me was forcing the reinstall of xbox identity provider.
Assumption – the Xbox app is already installed, and when you start it, you can login to it.
Close the Xbox app
Open powershell as an administrator (search, "powershell", right click on windows powershell and choose run as administrator
run "Get-appxpackage Microsoft.XboxIdentityProvider | Remove-AppxPackage", without the quotes.
This will remove xbox identify provider
Open Xbox app. At the bottom, it will complain about a missing dependency, 'xbox identity provider'. Allow it to install it.
Login using the Xbox app
Launch the Minecraft Launcher
Hopefully Login
Good luck.