Feat: Clear role cookie on logout

This commit is contained in:
2025-10-02 13:46:04 -07:00
parent c34da04919
commit 6490ca0d93

View File

@@ -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 });
}