Skip to content

Commit

Permalink
chore(readme): tweak wording
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach authored Aug 30, 2021
1 parent 433681e commit ebdafb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ payload, header = JWT.decode(token, verify: false, validate: false)
# Verification checks the signature
# Validation is checking if the token has expired etc

# You may also dynamically decide the key by passing a block to the decode function
# algorithm is optionally, you can omit it to use algorithm defined in the header
# You may dynamically decide the key by passing a block to the decode function
# the algorithm is optional, you can omit it to use algorithm defined in the header
payload, header = JWT.decode(token, JWT::Algorithm::HS256) do |header, payload|
"the key"
end
Expand Down

0 comments on commit ebdafb1

Please sign in to comment.