I've created an "Email Session" & store the session id, which I get in return. Then when again I use the same session id with the following "getSession()" method, I get the below error.
const promise = account.getSession("64d3b0ab0ae91ad7c150");
promise.then(
function (response) {
console.log("user session info: ", response); // Success
},
function (error) {
console.log("user session error: ", error); // Failure
}
);
What exactly I'm doing wrong here? Need some guidance.