blob: 2b252aae2d004203edfec108510045797cd85555 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import cookie from 'cookie';
const opts = {
httpOnly: true,
sameSite: 'lax',
path: '/'
};
export async function load({ request: { headers } }) {
throw new Error("@migration task: Migrate this return statement (https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292699)");
return {
status: 302,
headers: {
location: '/logout/done',
'set-cookie': [
cookie.serialize('token', '', {
...opts,
expires: new Date(0)
}),
cookie.serialize('refresh_token', '', {
...opts,
expires: new Date(0)
})
]
}
};
}
|