load_valid_token

Function load_valid_token 

Source
async fn load_valid_token(wstore: &Store, http: &Client) -> Option<String>
Expand description

Load a valid (non-expired) access token, refreshing via refresh_token if needed. Saves refreshed credentials back to the store. Returns None if no credentials are stored, the token is expired and refresh fails, or the refresh_token is absent.