From ebdafb104218f4e4664d805004e251b35d99a3d8 Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Mon, 30 Aug 2021 10:10:49 +1000 Subject: [PATCH] chore(readme): tweak wording --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fb33abd..5a33310 100644 --- a/README.md +++ b/README.md @@ -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