From 6490ca0d934c468f6046945677180e2b8a092b04 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Thu, 2 Oct 2025 13:46:04 -0700 Subject: [PATCH] Feat: Clear role cookie on logout --- functions/api/logout.js | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/api/logout.js b/functions/api/logout.js index 540739b..1a26ba7 100644 --- a/functions/api/logout.js +++ b/functions/api/logout.js @@ -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 }); }