Adding icarus_envy (#39)

Reviewed-on: phoenix/icarus_auth#39
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2025-06-01 23:02:09 +00:00
committed by phoenix
parent d4faa7976e
commit 02697b2fd9
6 changed files with 30 additions and 55 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ pub mod endpoint {
Ok(user) => {
if hashing::verify_password(&payload.password, user.password.clone()).unwrap() {
// Create token
let key = token_stuff::get_key().unwrap();
let key = icarus_envy::environment::get_secret_key().await;
let (token_literal, duration) = token_stuff::create_token(&key).unwrap();
if token_stuff::verify_token(&key, &token_literal) {