We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ee21928 + 2c85fbc commit 38f8a7bCopy full SHA for 38f8a7b
src/clients/blobscan/jwt_manager.rs
@@ -47,12 +47,12 @@ impl JWTManager {
47
48
match *token_guard {
49
Some(ref token) => {
50
- let now = Utc::now() - self.safety_margin;
+ let now = Utc::now() + self.safety_margin;
51
let expiration_date = expr_guard.ok_or(anyhow::anyhow!(
52
"JWT expiration date not set. This should not happen"
53
))?;
54
55
- if now > expiration_date {
+ if now >= expiration_date {
56
debug!(
57
expiration_date = expiration_date.to_string(),
58
"JWT expired. Refreshing token"
0 commit comments