From c05a140b0bb456a3c1229363858516c29ffc4d1f Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 22 Apr 2022 11:43:55 +0200 Subject: [PATCH] fix: GitHub token cleanup on team switch --- src/routes/dashboard.json.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/dashboard.json.ts b/src/routes/dashboard.json.ts index b28a82cd8..ff01dbfd8 100644 --- a/src/routes/dashboard.json.ts +++ b/src/routes/dashboard.json.ts @@ -57,7 +57,8 @@ export const post: RequestHandler = async (event) => { headers: { 'set-cookie': [ `${cookie}=${value}; HttpOnly; Path=/; Max-Age=15778800;`, - 'gitlabToken=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT' + 'gitlabToken=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT', + 'githubToken=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT' ], Location: from }