Revert "♻️ Update how guest session is handled"

This reverts commit b5c20533d2.
This commit is contained in:
Luke Vella 2023-11-04 18:51:54 +00:00
parent b5c20533d2
commit 41f85279bb
2 changed files with 27 additions and 22 deletions

View file

@ -71,6 +71,11 @@ export const UserProvider = (props: { children?: React.ReactNode }) => {
token: legacyToken,
redirect: false,
});
} else {
// End: Legacy token migration
signIn("guest", {
redirect: false,
});
}
},
});

View file

@ -62,7 +62,6 @@ export default withAuth(
value: legacyToken.value,
httpOnly: false,
});
}
} else {
// Create new guest user
const newUser = `user-${randomid()}`;
@ -87,6 +86,7 @@ export default withAuth(
});
}
}
}
return res;
},