GetAccessToken - Schwenkner/SugarSyncNet GitHub Wiki

The Access token is used by the Client to authenticate for each request at SugarSync. It is not necessary to execute GetAccessToken since every request checks itself, if the Client already has a valid access token. If so it will be used unless it is expired.

if the Client does not contain a valid access token it requests one executing this command:

accessToken = await GetAccessTokenAsync(userLogin.RefreshToken);

always using the refresh token.