Skip to content

Commit

Permalink
Merge pull request #223 from PhonicCanine/patch-1
Browse files Browse the repository at this point in the history
Fix a UTC Time conversion bug
  • Loading branch information
normj authored Feb 9, 2023
2 parents c7c6c5a + b5f5fb2 commit bc64083
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private async Task PopulateTokens(TUser user, string claimType, string claimValu
var refreshToken = await _httpContextAccessor.HttpContext.GetTokenAsync(OpenIdConnectParameterNames.RefreshToken).ConfigureAwait(false);
var idToken = await _httpContextAccessor.HttpContext.GetTokenAsync(OpenIdConnectParameterNames.IdToken).ConfigureAwait(false);

user.SessionTokens = new CognitoUserSession(idToken, accessToken, refreshToken, result.Properties.IssuedUtc.Value.DateTime, result.Properties.ExpiresUtc.Value.DateTime);
user.SessionTokens = new CognitoUserSession(idToken, accessToken, refreshToken, result.Properties.IssuedUtc.Value.UtcDateTime, result.Properties.ExpiresUtc.Value.UtcDateTime);
}
}
}
Expand Down

0 comments on commit bc64083

Please sign in to comment.