Updating references
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ pub async fn auth<B>(
|
||||
let secret_key = schedtxt_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
|
||||
validation.set_audience(&["schedtxt"]); // Must match exactly what's in the token
|
||||
let _claims = decode::<schedtxt_models::token::Claims>(
|
||||
&token,
|
||||
&DecodingKey::from_secret(secret_key.as_ref()),
|
||||
|
||||
Reference in New Issue
Block a user