swa login --use-device-code
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
No.
Describe the solution you'd like A clear and concise description of what you want to happen.
In Azure CLI, there is a az login --use-device-code command that using Device Code Flow for sign-in.
In SWA, I wish to have the same behavior for sign-in Azure.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
N/A
Additional context Add any other context or screenshots about the feature request here.
Device Code login is currently implemented as fallback, but doesn't seem to work due to an upstream issue, see related issue here: https://github.com/Azure/azure-sdk-for-js/issues/22752
We've recently added support for Azure CLI login, which allows you to use az login --use-device-code - once done, swa login will use the same authentication. This will be released in v2.0.0 (coming out this week).