Im trying to call restartSession() on a failed login/registration. But it always returns a false boolean. I upgraded my plan because this is a feature that i need. But its not working.

Here is my code for handleLogin

const handleLogIn = async () => {
try {
const userData = await faceioInstance?.authenticate({
locale: "auto",
});
console.log(userData);
console.log("Unique Facial ID: ", userData.facialId);
console.log("PayLoad: ", userData.payload.username);
setSignedIn(userData.payload.username);
setTimeout(() => {
navigate("/dashboard");
}, 3000);
} catch (error) {
handleError(error);
alert(error);
faceioInstance.restartSession();
console.log(faceioInstance.restartSession())
}
};