Add --use-device-code as an option in config
- Dominant language
- Python
- Stars
- 17.3k
- Forks
- 4.6k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 13
Description
### Describe the feature
In order to use `aws sso login` on non-local computers, you have to pass in `--use-device-code`. This should be an option as users who need to use the option will presumably always need to. Adding an option in the config as a convenience will be helpful.
### Use Case
Having to always add the flag when logging in is annoying.
### Proposed Solution
Add a login type in config:
```
[sso-session default]
...
login_type = device | pkce
```
### Other Information
_No response_
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### CLI version used
2.22.2
### Environment details (OS name and version, etc.)
Ubuntu 24.04
Contributor guide
Assessment
This issue has not been assessed yet.