mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-16 02:30:08 +01:00
fix: disable clock skew
reference: https://stackoverflow.com/a/46231102 https://stackoverflow.com/a/47155318
This commit is contained in:
@@ -54,7 +54,11 @@ builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
|
||||
ValidAudience = DomainName,
|
||||
IssuerSigningKey = new SymmetricSecurityKey(
|
||||
Encoding.UTF8.GetBytes(JwtSecret)
|
||||
)
|
||||
),
|
||||
// disable clock skew
|
||||
// https://stackoverflow.com/a/46231102
|
||||
// https://stackoverflow.com/a/47155318
|
||||
ClockSkew = TimeSpan.Zero
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user