Skip to content

Commit

Permalink
🧑‍💻 Add 5-second grade period to default JwtClaims for better compata…
Browse files Browse the repository at this point in the history
…bility with tests
  • Loading branch information
rster2002 committed Jul 27, 2023
1 parent b0b008f commit 87c2ac3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/models/jwt/jwt_claims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 87c2ac3

Please sign in to comment.