aboutsummaryrefslogtreecommitdiff
path: root/src/auth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 418f64e..38b7a24 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -1,6 +1,7 @@
1use argon2::password_hash::rand_core::OsRng; 1use argon2::{
2use argon2::password_hash::{PasswordHasher, SaltString}; 2 Argon2, PasswordHash, PasswordVerifier,
3use argon2::{Argon2, PasswordHash, PasswordVerifier}; 3 password_hash::{PasswordHasher, SaltString, rand_core::OsRng},
4};
4use jsonwebtoken::{self as jwt, DecodingKey, EncodingKey, Header, Validation}; 5use jsonwebtoken::{self as jwt, DecodingKey, EncodingKey, Header, Validation};
5use serde::{Deserialize, Serialize}; 6use serde::{Deserialize, Serialize};
6 7