Skip to content

Commit

Permalink
🚀 Reexport RsaPrivateKey import
Browse files Browse the repository at this point in the history
  • Loading branch information
rster2002 committed Jul 18, 2023
1 parent fa76944 commit 5898707
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion .idea/vcs.xml

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 = "0.1.0"
version = "1.1.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
10 changes: 6 additions & 4 deletions src/services/jwt_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use std::ops::Add;

use chrono::{Duration, Months, Utc};
use rsa::pkcs1v15::SigningKey;
pub use rsa::RsaPrivateKey;
use rsa::signature::{SignatureEncoding, Signer};
use rsa::RsaPrivateKey;
use serde::{Deserialize, Serialize};
use serde_json::{Map, Value};
use sha2::Sha256;
Expand Down Expand Up @@ -339,12 +339,14 @@ impl JwtService {

#[cfg(test)]
mod tests {
use std::str::FromStr;

use rsa::{BigUint, RsaPrivateKey};
use serde::{Deserialize, Serialize};

use crate::errors::JwtError;
use crate::models::jwt::{JwtClaims, JwtHeader, JwtTokenType};
use crate::services::JwtService;
use rsa::{BigUint, RsaPrivateKey};
use serde::{Deserialize, Serialize};
use std::str::FromStr;

#[derive(Debug, Serialize, Deserialize)]
struct TestPayload {
Expand Down

0 comments on commit 5898707

Please sign in to comment.