Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/NetCoreForce.Client/AuthenticationClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ public async Task TokenRefreshAsync(string refreshToken, string clientId, string
if (responseMessage.IsSuccessStatusCode)
{
this.AccessInfo = JsonConvert.DeserializeObject<AccessTokenResponse>(response);
this.AccessInfo.RefreshToken = refreshToken; //not included in reponse

//with refresh token rotation we get a new refresh token after exchanging the current one.
if (string.IsNullOrEmpty(this.AccessInfo.RefreshToken)) this.AccessInfo.RefreshToken = refreshToken; //when not included in response
}
else
{
Expand Down Expand Up @@ -368,4 +370,4 @@ public void Dispose()
_httpClient.Dispose();
}
}
}
}