# README
Auth package
The CLI authentication follows this approach:
$ auth0 login
uses Auth0 Device Flow to get anacccess token
and arefresh token
for the selected tenant.- The access token is stored at the configuration file.
- The refresh token is stored at the OS keychain (supports macOS, Linux, and Windows thanks to https://github.com/zalando/go-keyring).
- During regular commands initialization, the access token is used to instantiate an Auth0 API client. - If the token is expired according to the value stored on the configuration file, a new one is requested using the refresh token. - In case of any error, the interactive login flow is triggered.