Skip to content

Commit

Permalink
set clockskew to 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsonax committed May 24, 2024
1 parent 631324d commit 7aa25e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CleanAspCore/AppConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ internal static void AddAuthServices(this WebApplicationBuilder builder)
.Build());

builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(JwtBearerDefaults.AuthenticationScheme);
.AddJwtBearer(JwtBearerDefaults.AuthenticationScheme, x =>
{
x.TokenValidationParameters.ClockSkew = TimeSpan.FromSeconds(5);
});
}

internal static void AddSwaggerServices(this WebApplicationBuilder builder)
Expand Down

0 comments on commit 7aa25e1

Please sign in to comment.