Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7b63021

Browse files
author
mmacneil
committed
Fixed expiration error due caused by static IssuedAt datetime val.
1 parent 0c553d0 commit 7b63021

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/Models/JwtIssuerOptions.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-

1+
22

33
using System;
44
using System.Threading.Tasks;
@@ -31,12 +31,12 @@ public class JwtIssuerOptions
3131
/// <summary>
3232
/// 4.1.5. "nbf" (Not Before) Claim - The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
3333
/// </summary>
34-
public DateTime NotBefore {get;set;}= DateTime.UtcNow;
34+
public DateTime NotBefore => DateTime.UtcNow;
3535

3636
/// <summary>
3737
/// 4.1.6. "iat" (Issued At) Claim - The "iat" (issued at) claim identifies the time at which the JWT was issued.
3838
/// </summary>
39-
public DateTime IssuedAt {get;set;}= DateTime.UtcNow;
39+
public DateTime IssuedAt => DateTime.UtcNow;
4040

4141
/// <summary>
4242
/// Set the timespan the token will be valid for (default is 120 min)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /