Skip to content

Commit

Permalink
Fixed expiration error due caused by static IssuedAt datetime val.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacneil committed Feb 20, 2018
1 parent 0c553d0 commit 7b63021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Models/JwtIssuerOptions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@



using System;
using System.Threading.Tasks;
Expand Down Expand Up @@ -31,12 +31,12 @@ public class JwtIssuerOptions
/// <summary>
/// 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.
/// </summary>
public DateTime NotBefore { get; set; } = DateTime.UtcNow;
public DateTime NotBefore => DateTime.UtcNow;

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

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

0 comments on commit 7b63021

Please sign in to comment.