This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/IdentityModel.OidcClient Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,8 @@ public virtual async Task<RefreshTokenResult> RefreshTokenAsync(string refreshTo
307307 IdentityToken = response . IdentityToken ,
308308 AccessToken = response . AccessToken ,
309309 RefreshToken = response . RefreshToken ,
310- ExpiresIn = ( int ) response . ExpiresIn
310+ ExpiresIn = ( int ) response . ExpiresIn ,
311+ AccessTokenExpiration = DateTime . Now . AddSeconds ( response . ExpiresIn )
311312 } ;
312313 }
313314
Original file line number Diff line number Diff line change 22// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33
44
5+ using System ;
6+
57namespace IdentityModel . OidcClient . Results
68{
79 /// <summary>
@@ -41,5 +43,14 @@ public class RefreshTokenResult : Result
4143 /// The expires in.
4244 /// </value>
4345 public virtual int ExpiresIn { get ; internal set ; }
46+
47+ /// <summary>
48+ /// Gets or sets the access token expiration.
49+ /// </summary>
50+ /// <value>
51+ /// The access token expiration.
52+ /// </value>
53+ public virtual DateTime AccessTokenExpiration { get ; internal set ; }
54+
4455 }
4556}
You can’t perform that action at this time.
0 commit comments