This repository was archived by the owner on Feb 23, 2025. It is now read-only.
File tree 2 files changed +13
-1
lines changed
src/IdentityModel.OidcClient
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
307
307
IdentityToken = response . IdentityToken ,
308
308
AccessToken = response . AccessToken ,
309
309
RefreshToken = response . RefreshToken ,
310
- ExpiresIn = ( int ) response . ExpiresIn
310
+ ExpiresIn = ( int ) response . ExpiresIn ,
311
+ AccessTokenExpiration = DateTime . Now . AddSeconds ( response . ExpiresIn )
311
312
} ;
312
313
}
313
314
Original file line number Diff line number Diff line change 2
2
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3
3
4
4
5
+ using System ;
6
+
5
7
namespace IdentityModel . OidcClient . Results
6
8
{
7
9
/// <summary>
@@ -41,5 +43,14 @@ public class RefreshTokenResult : Result
41
43
/// The expires in.
42
44
/// </value>
43
45
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
+
44
55
}
45
56
}
You can’t perform that action at this time.
0 commit comments