mirror of
https://github.com/spchcap/speech.capital.git
synced 2026-01-13 16:18:06 +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();
|
||||
headers.append('Set-Cookie', `auth_user=; ${opts}`);
|
||||
headers.append('Set-Cookie', `auth_hash=; ${opts}`);
|
||||
headers.append('Set-Cookie', `auth_role=; ${opts}`);
|
||||
headers.append('Location', '/');
|
||||
return new Response(null, { status: 302, headers });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user