mirror of
https://github.com/azure/login.git
synced 2026-06-08 12:17:08 +00:00
changes
This commit is contained in:
parent
5198b17136
commit
5c1ee354bc
2 changed files with 4 additions and 4 deletions
|
|
@ -223,9 +223,9 @@ function jwtParser(federatedToken) {
|
|||
console.log(tokenPayload);
|
||||
let bufferObj = Buffer.from(tokenPayload, "base64");
|
||||
console.log(bufferObj);
|
||||
let decodedPayload = JSON.stringify(bufferObj.toString("utf8"));
|
||||
let decodedPayload = JSON.parse(bufferObj.toString("utf8"));
|
||||
console.log(decodedPayload);
|
||||
return [decodedPayload["iss"], decodedPayload["sub"]];
|
||||
return [decodedPayload['iss'], decodedPayload['sub']];
|
||||
});
|
||||
}
|
||||
main();
|
||||
|
|
|
|||
|
|
@ -218,8 +218,8 @@ async function jwtParser(federatedToken) {
|
|||
console.log(tokenPayload);
|
||||
let bufferObj = Buffer.from(tokenPayload, "base64");
|
||||
console.log(bufferObj);
|
||||
let decodedPayload = JSON.stringify(bufferObj.toString("utf8"));
|
||||
let decodedPayload = JSON.parse(bufferObj.toString("utf8"));
|
||||
console.log(decodedPayload);
|
||||
return [decodedPayload["iss"],decodedPayload["sub"]];
|
||||
return [decodedPayload['iss'],decodedPayload['sub']];
|
||||
}
|
||||
main();
|
||||
Loading…
Add table
Add a link
Reference in a new issue