Skip to content

Commit

Permalink
Clarify that secret must be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
boardfish authored and anakinj committed Jun 4, 2021
1 parent 111e252 commit 10b3b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -76,7 +76,7 @@ puts decoded_token
* HS512 - HMAC using SHA-512 hash algorithm

```ruby
# The secret is required. A JWT::DecodeError will be raised if it isn't present.
# The secret must be a string. A JWT::DecodeError will be raised if it isn't provided.
hmac_secret = 'my$ecretK3y'

token = JWT.encode payload, hmac_secret, 'HS256'
Expand Down

0 comments on commit 10b3b77

Please sign in to comment.