diff --git a/sdk/src/claim.rs b/sdk/src/claim.rs index 0c02ae113..28daf811c 100644 --- a/sdk/src/claim.rs +++ b/sdk/src/claim.rs @@ -2001,6 +2001,13 @@ impl Claim { )?; } + // Skip further checks for v1 claims if not in strict validation mode + if claim.version() == 1 { + if let Ok(false) = get_settings_value::("verify.strict_v1_validation") { + return Ok(()); // no further checks for v1 claims + } + } + // 1. make sure every action has an actions array that is not empty if let Some(bad_assertion) = all_actions.iter().find(|a| { if let Ok(actions) = Actions::from_assertion(a.assertion()) {