Skip to content

Commit 3d1e9c0

Browse files
jonmchananakinj
authored andcommitted
clarify when hmac empty string errors occur
1 parent 1cec3f4 commit 3d1e9c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ puts decoded_token
7777
* HS512 - HMAC using SHA-512 hash algorithm
7878

7979
```ruby
80-
# The secret must be a string. With OpenSSL 3.0, JWT::DecodeError will be raised if it isn't provided.
80+
# The secret must be a string. With OpenSSL 3.0/openssl gem `<3.0.1`, JWT::DecodeError will be raised if it isn't provided.
8181
hmac_secret = 'my$ecretK3y'
8282

8383
token = JWT.encode payload, hmac_secret, 'HS256'

0 commit comments

Comments
 (0)