diff --git a/examples/auth0.rs b/examples/auth0.rs index 2964c3a3..ed9caaea 100644 --- a/examples/auth0.rs +++ b/examples/auth0.rs @@ -27,6 +27,7 @@ fn main() -> Result<(), Box> { Algorithm::from_str(j.common.key_algorithm.unwrap().to_string().as_str()) .unwrap(), ); + validation.set_audience(&["https://dev-duzyayk4.eu.auth0.com/api/v2/"]); validation.validate_exp = false; let decoded_token = decode::>(TOKEN, &decoding_key, &validation)