icarus_envy related changes
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ pub async fn auth<B>(
|
||||
(StatusCode::UNAUTHORIZED, Json(json_error))
|
||||
})?;
|
||||
|
||||
let secret_key = icarus_envy::environment::get_secret_main_key().await;
|
||||
let secret_key = icarus_envy::environment::get_secret_main_key().await.value;
|
||||
|
||||
let mut validation = Validation::new(jsonwebtoken::Algorithm::HS256);
|
||||
validation.set_audience(&["icarus"]); // Must match exactly what's in the token
|
||||
|
||||
Reference in New Issue
Block a user