Skip to content

Commit

Permalink
[INJIMOB-2265] fix the encoding issue noticed when encoding the jwt p…
Browse files Browse the repository at this point in the history
…ayload in vp sharing flow

Signed-off-by: PuBHARGAVI <[email protected]>
  • Loading branch information
PuBHARGAVI committed Dec 4, 2024
1 parent 57ebe5c commit 324f465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/cryptoutil/cryptoUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export async function getJWT(
) {
try {
const header64 = encodeB64(JSON.stringify(header));
const payLoad64 = encodeB64(JSON.stringify(payLoad));
const payLoad64 = encodeB64(forge.util.encodeUtf8(JSON.stringify(payLoad)));
const preHash = header64 + '.' + payLoad64;
const signature64 = await createSignature(
privateKey,
Expand Down

0 comments on commit 324f465

Please sign in to comment.