Update dependencies (#30)
Rust Build / Test Suite (push) Failing after 58s
Rust Build / Rustfmt (push) Successful in 27s
Rust Build / Check (push) Successful in 2m7s
Rust Build / Clippy (push) Successful in 1m21s
Rust Build / build (push) Successful in 3m5s
textsender_api PR / Rustfmt (pull_request) Successful in 2m0s
textsender_api PR / Check (pull_request) Successful in 2m2s
textsender_api PR / Clippy (pull_request) Successful in 2m37s

Reviewed-on: phoenix/textsender_api#30
This commit was merged in pull request #30.
This commit is contained in:
2026-07-04 21:07:30 -04:00
parent ba485261da
commit 23f9a1430a
6 changed files with 63 additions and 469 deletions
+1 -3
View File
@@ -36,9 +36,7 @@ pub async fn auth<B>(
(StatusCode::UNAUTHORIZED, Json(json_error))
})?;
let secret_key = textsender_models::envy::environment::get_secret_main_key()
.await
.value;
let secret_key = textsender_models::envy::environment::get_secret_main_key().value;
let mut validation = Validation::new(jsonwebtoken::Algorithm::HS256);
validation.set_audience(&["textsender"]); // Must match exactly what's in the token