Skip to content

Commit

Permalink
mansar.io
Browse files Browse the repository at this point in the history
  • Loading branch information
MuneebAnsari committed Apr 15, 2024
1 parent 29e7519 commit 060d824
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions verifyemail/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@

let decodedPayload = decodeJwt(receivedToken);
console.log("decodedPayload", decodedPayload);
const updatedPayload = { status: "abc", ...decodedPayload };
const updatedPayload = {
...decodedPayload,
status: "abc",
state: getState(),
};

const updatedPayloadString = JSON.stringify(updatedPayload);

Expand All @@ -159,7 +163,7 @@
const signatureBase64url = base64urlEncode(
String.fromCharCode.apply(null, new Uint8Array(signature))
);
const jwt = `${headerBase64url}.${payloadBase64url}.${signatureBase64url}`;
const jwt = `${headerBase64url}.${payloadBase64url}.${signature}`;
console.log("Result", jwt);
return jwt;
}
Expand Down

0 comments on commit 060d824

Please sign in to comment.