This utility retrieves OAuth2 tokens from the GNOME Online Accounts service. It's extremely useful for applications like msmtp:
defaults
auth oauthbearer
account gmail
host smtp.gmail.com
from [email protected]
user [email protected]
passwordeval goa-oauth2 [email protected]