Skip to content

Commit

Permalink
Fixed app crash
Browse files Browse the repository at this point in the history
  • Loading branch information
pkirilin committed Jan 17, 2024
1 parent d3dd2d6 commit 78e3d8c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ public async Task<GetStatusResult> Handle(GetStatusRequest request, Cancellation

private bool ExistingTokenExpired(DateTimeOffset existingTokenIssuedOn)
{
var accessTokenExpirationDate = existingTokenIssuedOn
.Add(Constants.AuthenticationParameters.AccessTokenRefreshInterval);

var accessTokenExpirationDate = existingTokenIssuedOn + Constants.AuthenticationParameters.AccessTokenRefreshInterval;
var currentDate = timeProvider.GetUtcNow();

return currentDate > accessTokenExpirationDate;
Expand Down

0 comments on commit 78e3d8c

Please sign in to comment.