google / oauth2l

oauth2l ("oauth tool") is a simple CLI for interacting with Google API authentication.
Apache License 2.0
651 stars 81 forks source link

Replace sgauth with official oauth2 library #117

Closed andyrzhao closed 3 years ago

andyrzhao commented 3 years ago

The entire sgauth package is removed, and the oauth2l logic is refactored to use oauth2 golang core library instead. Two utils that were copied over from sgauth and refactored are "fetch.go" (used for token fetching) and "settings.go" (supports token fetching and caching).