fix: clear cookie on incorrect session
This commit is contained in:
parent
6205d0c26d
commit
9a0c80f246
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ export const handle = (async ({ event, resolve }) => {
|
|||
event.locals.user = user;
|
||||
} else {
|
||||
event.locals.user = undefined;
|
||||
event.cookies.delete('session');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue