Changed refernece
Rust Build / Test Suite (pull_request) Successful in 46s
Rust Build / Rustfmt (pull_request) Successful in 49s
Rust Build / Clippy (pull_request) Successful in 2m1s
Rust Build / Check (pull_request) Successful in 2m54s
Rust Build / build (pull_request) Successful in 2m10s
Rust Build / Test Suite (pull_request) Successful in 46s
Rust Build / Rustfmt (pull_request) Successful in 49s
Rust Build / Clippy (pull_request) Successful in 2m1s
Rust Build / Check (pull_request) Successful in 2m54s
Rust Build / build (pull_request) Successful in 2m10s
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ pub async fn auth<B>(
|
|||||||
.value;
|
.value;
|
||||||
|
|
||||||
let mut validation = Validation::new(jsonwebtoken::Algorithm::HS256);
|
let mut validation = Validation::new(jsonwebtoken::Algorithm::HS256);
|
||||||
validation.set_audience(&["icarus"]); // Must match exactly what's in the token
|
validation.set_audience(&["textsender"]); // Must match exactly what's in the token
|
||||||
let _claims = decode::<textsender_models::token::Claims>(
|
let _claims = decode::<textsender_models::token::Claims>(
|
||||||
&token,
|
&token,
|
||||||
&DecodingKey::from_secret(secret_key.as_ref()),
|
&DecodingKey::from_secret(secret_key.as_ref()),
|
||||||
|
|||||||
Reference in New Issue
Block a user