From b07885984790effbf32129a403056726dede474f Mon Sep 17 00:00:00 2001 From: Koen Sengers Date: Thu, 14 Dec 2023 16:35:53 +0100 Subject: [PATCH] fix: Use class method jwt_encode instead of jwt_encode_without_nonce --- lib/keypair.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/keypair.rb b/lib/keypair.rb index 29d747c..38e19c0 100644 --- a/lib/keypair.rb +++ b/lib/keypair.rb @@ -119,7 +119,7 @@ def self.jwt_encode(payload) # @return [String] Encoded JWT token with security credentials. # @param payload [Hash] Hash which should be encoded. def self.jwt_encode_without_nonce(payload) - current.jwt_encode_without_nonce(payload, {}, nonce: false) + current.jwt_encode(payload, {}, nonce: false) end # Decodes the payload and verifies the signature against the current valid keypairs.