Skip to content

Commit

Permalink
Readme: Typo fix re MissingRequiredClaim.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmorant authored and excpt committed Oct 16, 2021
1 parent da13b4c commit 9dfd418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ end

You can specify claims that must be present for decoding to be successful. JWT::MissingRequiredClaim will be raised if any are missing
```ruby
# Will raise a JWT::ExpiredSignature error if the 'exp' claim is absent
# Will raise a JWT::MissingRequiredClaim error if the 'exp' claim is absent
JWT.decode token, hmac_secret, true, { required_claims: ['exp'], algorithm: 'HS256' }
```

Expand Down

0 comments on commit 9dfd418

Please sign in to comment.