mirror of
https://github.com/spchcap/speech.capital.git
synced 2026-01-14 08:38:42 +00:00
Feat: Clear role cookie on logout
This commit is contained in:
@@ -3,6 +3,7 @@ export async function onRequest() {
|
|||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
headers.append('Set-Cookie', `auth_user=; ${opts}`);
|
headers.append('Set-Cookie', `auth_user=; ${opts}`);
|
||||||
headers.append('Set-Cookie', `auth_hash=; ${opts}`);
|
headers.append('Set-Cookie', `auth_hash=; ${opts}`);
|
||||||
|
headers.append('Set-Cookie', `auth_role=; ${opts}`);
|
||||||
headers.append('Location', '/');
|
headers.append('Location', '/');
|
||||||
return new Response(null, { status: 302, headers });
|
return new Response(null, { status: 302, headers });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user