It is supposed to store valid token into $token variable.
Actual behavior
Showing below in PowerShell console and launching a browser which shows "AADSTS50000: There was an error issuing a token or an issue with our sign-in service.":
WARNING: Attempting to launch a browser for authorization code login.
WARNING: We have launched a browser for you to login. For the old experience with device code flow, please run 'New-PartnerAccessToken -UseDeviceAuthentication'.
Environment
PowerShell version 5.1.22621.2506
OS: Windows 11 23H2
Steps to reproduce
Expected behavior
It is supposed to store valid token into $token variable.
Actual behavior
Showing below in PowerShell console and launching a browser which shows "AADSTS50000: There was an error issuing a token or an issue with our sign-in service.":
Environment
PowerShell version 5.1.22621.2506 OS: Windows 11 23H2