Skip to content

Commit

Permalink
⬆️ Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rster2002 committed Jul 18, 2023
1 parent 2d0c3eb commit b63e3bb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
37 changes: 19 additions & 18 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ test-utils = []
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.91"
chrono = "0.4.23"
base64-url = "1.4.13"
rsa = "0.8.0"
base64-url = "2.0.0"
rsa = "0.9.2"
hmac = "0.12.1"
sha2 = { version = "0.10.6", features = ["oid"] }
rand = { version = "0.8.5", features = ["std_rng"] }
Expand Down
4 changes: 2 additions & 2 deletions src/services/jwt_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::models::jwt::jwt_headers::JwtHeader;
use crate::models::jwt::jwt_token_type::JwtTokenType;

/// Service with functions to generate and verify JWT tokens
pub(crate) struct JwtService {
pub struct JwtService {
signing_key: SigningKey<Sha256>,
access_token_seconds: u32,
issuer: String,
Expand All @@ -33,7 +33,7 @@ impl JwtService {
audience: impl Into<String>,
) -> Self {
Self {
signing_key: SigningKey::new_with_prefix(private_key),
signing_key: SigningKey::new(private_key),
access_token_seconds,
issuer: issuer.into(),
audience: audience.into(),
Expand Down

0 comments on commit b63e3bb

Please sign in to comment.