. many cli apps depend on a similar flow e.g.
See setupToken(), sendMessage(), start() , Next() etc which illustrate the kludge needed for token set-up, storage, refresh.
Are there libraries or storage frameworks, possibly leveraging TPM, that could secure these critical credentials and reduce the boilerplate?
Specific Oauth2 Pain Points