TokenValidationError::TokenDecodeError returns josekit::JoseError which has lots of anyhow::Error under the hood. We need to make sure that returned errors do not return any sensitive information and TokenValidationError can be safely logged and returned in json response
TokenValidationError::TokenDecodeErrorreturnsjosekit::JoseErrorwhich has lots ofanyhow::Errorunder the hood. We need to make sure that returned errors do not return any sensitive information andTokenValidationErrorcan be safely logged and returned in json response