Skip to content

Commit

Permalink
Update the decode_disclosure method to include the digest value.
Browse files Browse the repository at this point in the history
  • Loading branch information
TakahikoKawasaki committed Nov 23, 2023
1 parent bfd4473 commit 9ddb318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decode-sd-jwt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def decode_disclosure(input)
digest = encode_base64url(sha256(input))
decoded = decode_base64url(input)

prettify_json "{ \"#{digest}\": #{decoded} }"
prettify_json "{ \"digest\": \"#{digest}\", \"#{input}\": #{decoded} }"
end

def decode_jwt(input)
Expand Down

0 comments on commit 9ddb318

Please sign in to comment.