Skip to content

Commit

Permalink
Merge pull request #98 from hypermkt/fix-README
Browse files Browse the repository at this point in the history
Remove unused variable in the sample code.
  • Loading branch information
aj-michael committed Aug 13, 2015
2 parents ad68cd0 + 0c51838 commit 817e352
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ From [Oauth JSON Web Token 4.1.7. "jti" (JWT ID) Claim](https://tools.ietf.org/h
> The `jti` (JWT ID) claim provides a unique identifier for the JWT. The identifier value MUST be assigned in a manner that ensures that there is a negligible probability that the same value will be accidentally assigned to a different data object; if the application uses multiple issuers, collisions MUST be prevented among values produced by different issuers as well. The `jti` claim can be used to prevent the JWT from being replayed. The `jti` value is a case-sensitive string. Use of this claim is OPTIONAL.
```ruby
user_id = '[email protected]'
# in order to use JTI you have to add iat
iat = Time.now.to_i
# Use the secret and iat to create a unique key per request to prevent replay attacks
Expand Down

0 comments on commit 817e352

Please sign in to comment.