By default, running m365 login will trigger the device-code flow. However, some users may want to set the browser flow as default. We could enhance this by adding a config key which determines the default login authType:
| Setting name |
Definition |
Default value |
authType |
Default login method to use when running m365 login without the --authType option. |
deviceCode |
By default, running
m365 loginwill trigger the device-code flow. However, some users may want to set the browser flow as default. We could enhance this by adding a config key which determines the default login authType:authTypem365 loginwithout the--authTypeoption.deviceCode