diff --git a/README.md b/README.md index 85b4cd48..0bf6a954 100644 --- a/README.md +++ b/README.md @@ -291,6 +291,12 @@ rescue JWT::ExpiredSignature end ``` +The Expiration Claim verification can be disabled. +```ruby +# Decode token without raising JWT::ExpiredSignature error +JWT.decode token, hmac_secret, true, { verify_expiration: false, algorithm: 'HS256' } +``` + **Adding Leeway** ```ruby @@ -331,6 +337,12 @@ rescue JWT::ImmatureSignature end ``` +The Not Before Claim verification can be disabled. +```ruby +# Decode token without raising JWT::ImmatureSignature error +JWT.decode token, hmac_secret, true, { verify_not_before: false, algorithm: 'HS256' } +``` + **Adding Leeway** ```ruby