Everything works well on windows:
But when I using mac OS(visual studio 2019): I always failed at step 5 with error: 401 Unauthorized
Is there any command to check the current status of my account or login into Visual?
Note: My Microsoft account using 2FA
Had the same problem and fixed it with OP's solution. Here are the steps I took: