Skip to content

Commit 64c7f9c

Browse files
committed
fix for the variable name
1 parent bd2a4df commit 64c7f9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AuthenticationSDK/authentication/jwt/JwtToken.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def getJwtBody(request_type, gmtDatetime, merchantconfig_obj)
6868

6969
# Note: Digest is not passed for GET calls
7070
digest = DigestGeneration.new.generateDigest(payload)
71-
jwtBody = "{\n \"digest\":\"" + digest + "\", \"digestAlgorithm\":\"SHA-256\", \"iat\":" + Time.parse(gmtdatetime).to_i.to_s + "}"
71+
jwtBody = "{\n \"digest\":\"" + digest + "\", \"digestAlgorithm\":\"SHA-256\", \"iat\":" + Time.parse(gmtDatetime).to_i.to_s + "}"
7272
elsif request_type == Constants::GET_REQUEST_TYPE || request_type == Constants::DELETE_REQUEST_TYPE
73-
jwtBody = "{\n \"iat\":" + Time.parse(gmtdatetime).to_i.to_s + "\n} \n\n"
73+
jwtBody = "{\n \"iat\":" + Time.parse(gmtDatetime).to_i.to_s + "\n} \n\n"
7474
else
7575
raise StandardError.new(Constants::ERROR_PREFIX + Constants::INVALID_REQUEST_TYPE_METHOD)
7676
end

0 commit comments

Comments
 (0)