diff --git a/Cargo.lock b/Cargo.lock index bf0024f..0c1e514 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -280,7 +280,7 @@ dependencies = [ [[package]] name = "jumpdrive-auth" -version = "2.0.0" +version = "2.1.1" dependencies = [ "base32", "base64-url", diff --git a/Cargo.toml b/Cargo.toml index 6b3eefc..58b48b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jumpdrive-auth" -version = "2.1.0" +version = "2.1.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index 365728d..5b9040a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ I currently have no intentions to publish this to crates.io, so for now if you w dependency using: ```toml -jumpdrive-auth = { git = "https://github.com/Jumpdrive-dev/Auth-Services", tag = "2.1.0" } +jumpdrive-auth = { git = "https://github.com/Jumpdrive-dev/Auth-Services", tag = "2.1.1" } ``` ## Features diff --git a/src/models/jwt/jwt_claims.rs b/src/models/jwt/jwt_claims.rs index b96ed2d..41c598d 100644 --- a/src/models/jwt/jwt_claims.rs +++ b/src/models/jwt/jwt_claims.rs @@ -77,8 +77,8 @@ impl Default for JwtClaims { iss: None, sub: None, aud: None, - exp: Some(now_timestamp), - nbf: Some(now_timestamp), + exp: Some(now_timestamp + 5), + nbf: Some(now_timestamp - 5), iat: None, jti: None, }