From 57d21cb3bf053ef57016d8e75480cafb23100a3b Mon Sep 17 00:00:00 2001 From: Joakim Antman Date: Sat, 28 Sep 2024 23:09:39 +0300 Subject: [PATCH] Fix a little --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c398624..39f2407 100644 --- a/README.md +++ b/README.md @@ -49,9 +49,9 @@ decoded_token = JWT.decode(token, key.key_metadata.key_id, true, algorithm: algo You can swap the default algorithms in the JWT gem to AWS backed ones by calling `::JWT::Aws::KMS.replace_defaults!`. ```ruby - ::JWT::Aws::KMS.replace_defaults! # Called in a initializer of some kind +::JWT::Aws::KMS.replace_defaults! # Called in a initializer of some kind - token = JWT.encode(payload, "e25c502b-a383-44ac-a778-0d97e8688cb7", "HS512") # Encode payload with KMS key e25c502b-a383-44ac-a778-0d97e8688cb7 +token = JWT.encode(payload, "e25c502b-a383-44ac-a778-0d97e8688cb7", "HS512") # Encode payload with KMS key e25c502b-a383-44ac-a778-0d97e8688cb7 ``` ## Development