refresh_and_store_token_sync
Description:
public bool refresh_and_store_token_sync (Source source, string refresh_token, OAuth2ServiceRefSourceFunc ref_source, Cancellable? cancellable = null) throws Error
Queries this at
get_refresh_uri with a request to refresh existing access token with provided refresh_token
and stores it into the secret
store on success.
Parameters:
this | |
source |
an Source |
refresh_token |
refresh token as provided by the server |
ref_source |
an OAuth2ServiceRefSourceFunc function to obtain an Source |
cancellable |
optional Cancellable object, or |
ref_source_user_data |
user data for |
Returns:
whether succeeded |