Skip to content

Commit 782399c

Browse files
committed
Use a saner time tolerance
1 parent 93d4021 commit 782399c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cwt_token.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,6 @@ fn should_verify_token() {
311311
let token_hex = "d18443a10105a05835a60172636f6170733a2f2f61732e6578616d706c65026764616a69616a690743313233041a6296121f051a6296040f061a6296040f58206b310798de7f6b2aeff832344c2ea37674807b72a8a2cc263f1d31b1eb86139b";
312312
let token = Hex::decode_to_vec(token_hex, None).unwrap();
313313
let mut options = VerificationOptions::default();
314-
options.time_tolerance = Some(Duration::from_days(100000));
314+
options.time_tolerance = Some(Duration::from_days(20000));
315315
let _ = key.verify_cwt_token(token, Some(options)).unwrap();
316316
}

0 commit comments

Comments
 (0)