Code cleanup
All checks were successful
Rust Build / Check (pull_request) Successful in 44s
Rust Build / Test Suite (pull_request) Successful in 1m20s
Rust Build / Rustfmt (pull_request) Successful in 31s
Rust Build / Clippy (pull_request) Successful in 47s
Rust Build / build (pull_request) Successful in 1m10s

This commit is contained in:
2025-04-07 13:16:21 -04:00
parent f9aaa2970f
commit 8952763fd0

View File

@@ -56,8 +56,6 @@ pub fn create_token(provided_key: &String) -> Result<(String, i64), josekit::Jos
provided_key.to_owned() provided_key.to_owned()
}; };
let duration = expire - time::OffsetDateTime::UNIX_EPOCH;
let signer = Hs256.signer_from_bytes(key.as_bytes()).unwrap(); let signer = Hs256.signer_from_bytes(key.as_bytes()).unwrap();
Ok(( Ok((
josekit::jwt::encode_with_signer(&payload, &header, &signer).unwrap(), josekit::jwt::encode_with_signer(&payload, &header, &signer).unwrap(),