icarus_envy version bump (#65)
All checks were successful
Rust Build / Test Suite (push) Successful in 3m10s
Rust Build / Clippy (push) Successful in 2m22s
Rust Build / build (push) Successful in 3m46s
Rust Build / Rustfmt (push) Successful in 25s
Rust Build / Check (push) Successful in 40s

Reviewed-on: #65
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit was merged in pull request #65.
This commit is contained in:
2025-10-10 21:03:18 +00:00
committed by phoenix
parent 473b4ec762
commit ebe29df991
6 changed files with 31 additions and 19 deletions

View File

@@ -96,7 +96,7 @@ pub mod endpoint {
Ok(user) => {
if hashing::verify_password(&payload.password, user.password.clone()).unwrap() {
// Create token
let key = icarus_envy::environment::get_secret_key().await;
let key = icarus_envy::environment::get_secret_key().await.value;
let (token_literal, duration) =
token_stuff::create_token(&key, &user.id).unwrap();
@@ -155,7 +155,7 @@ pub mod endpoint {
match repo::service::valid_passphrase(&pool, &payload.passphrase).await {
Ok((id, _passphrase, _date_created)) => {
let key = icarus_envy::environment::get_secret_key().await;
let key = icarus_envy::environment::get_secret_key().await.value;
let (token_literal, duration) =
token_stuff::create_service_token(&key, &id).unwrap();
@@ -207,7 +207,7 @@ pub mod endpoint {
axum::Json<response::refresh_token::Response>,
) {
let mut response = response::refresh_token::Response::default();
let key = icarus_envy::environment::get_secret_key().await;
let key = icarus_envy::environment::get_secret_key().await.value;
if token_stuff::verify_token(&key, &payload.access_token) {
let token_type = token_stuff::get_token_type(&key, &payload.access_token).unwrap();