ClearToken removes the stored token from the OS keychain.
()
| 94 | |
| 95 | // ClearToken removes the stored token from the OS keychain. |
| 96 | func ClearToken() { |
| 97 | _ = keyring.Delete(keyringService, keyringUser) |
| 98 | } |
| 99 | |
| 100 | // GetValidToken returns a valid access token, refreshing if necessary. |
| 101 | func GetValidToken(client *dashboard.Client) (string, error) { |
no outgoing calls