funk101
11/28/2022, 3:42 PMresponse.session.mergeIntoAccessTokenPayload() after overriding api signInPOST and getting a response I try to merge to access token payload but do not see the value when I console.log() the accessTokenPayload.rp_st
11/28/2022, 3:59 PMrp_st
11/28/2022, 3:59 PMfunk101
11/28/2022, 4:01 PMsignInPOST: async function (input) {
if (originalImplementation.signInPOST === undefined) {
throw Error("Shouldn't come here");
}
try {
const response = await originalImplementation.signInPOST(
input
);
if (response.status === "OK") {
const currentAccessTokenPayload =
response.session.getAccessTokenPayload();
await response.session.mergeIntoAccessTokenPayload({
...currentAccessTokenPayload,
message: "Hello World",
});
console.log("Payload: ", currentAccessTokenPayload);
}
return response;
} catch (err) {
console.log("signInPOST: ", err);
}
},funk101
11/28/2022, 4:02 PMfunk101
11/28/2022, 4:06 PMPayload: {}rp_st
11/28/2022, 4:08 PMcurrentAccessTokenPayload before calling mergeIntoAccessTokenPayload..funk101
11/28/2022, 4:14 PM