mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-16 19:00:07 +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,
|
ValidAudience = DomainName,
|
||||||
IssuerSigningKey = new SymmetricSecurityKey(
|
IssuerSigningKey = new SymmetricSecurityKey(
|
||||||
Encoding.UTF8.GetBytes(JwtSecret)
|
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