Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: GitHub token cleanup on team switch

Andras Bacsaic05a140b0bb4
diff --git a/src/routes/dashboard.json.ts b/src/routes/dashboard.json.ts
index b28a82cd8c..ff01dbfd8d 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
}