Skip to content

Commit

Permalink
fix: Use class method jwt_encode instead of jwt_encode_without_nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
KoenSengers committed Dec 14, 2023
1 parent 1f2d58d commit 7a17726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/keypair.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7a17726

Please sign in to comment.