diff --git a/src/Duende.AccessTokenManagement.OpenIdConnect/AuthenticationSessionUserTokenStore.cs b/src/Duende.AccessTokenManagement.OpenIdConnect/AuthenticationSessionUserTokenStore.cs index 6df0a96..6cbf967 100755 --- a/src/Duende.AccessTokenManagement.OpenIdConnect/AuthenticationSessionUserTokenStore.cs +++ b/src/Duende.AccessTokenManagement.OpenIdConnect/AuthenticationSessionUserTokenStore.cs @@ -192,7 +192,8 @@ public async Task StoreTokenAsync( var dpopKeyName = NamePrefixAndResourceSuffix(DPoPKeyName, parameters); var expiresName = NamePrefixAndResourceSuffix("expires_at", parameters); - // Note that we are not including the the resource suffix because there is no per-resource refresh token + // Note that we are not including the resource suffix because there + // is no per-resource refresh token var refreshTokenName = NamePrefix(OpenIdConnectParameterNames.RefreshToken); if (AppendChallengeSchemeToTokenNames(parameters)) @@ -215,10 +216,7 @@ public async Task StoreTokenAsync( if (token.RefreshToken != null) { - if (!result.Properties.UpdateTokenValue(refreshTokenName, token.RefreshToken)) - { - result.Properties.Items[$"{TokenPrefix}{refreshTokenName}"] = token.RefreshToken; - } + result.Properties.Items[refreshTokenName] = token.RefreshToken; } var options = _contextAccessor!.HttpContext!.RequestServices.GetRequiredService>();