feat: save recipe in progress

Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
pakintada@gmail.com 2026-04-20 10:37:02 +07:00
parent 916e056389
commit 230d4abe0c
11 changed files with 310 additions and 41 deletions

View file

@ -47,9 +47,12 @@
authStore.set(null);
let socket = get(socketStore);
if (socket) {
socket.close(1000, 'logout');
}
try {
if (socket) {
socket.close(1000, 'logout');
}
} catch (e) {}
socketStore.set(null);
if (browser && 'cookieStore' in window) await cookieStore.delete('logged_in');