Skip to content

Commit 819ba25

Browse files
authored
Merge pull request #774 from hackclub/delete-cookies-on-signout
Delete cookies on signout
2 parents a2df666 + 7307cd5 commit 819ba25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/utils/auth.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,11 @@ export async function getSession(): Promise<HsSession | null> {
202202
}
203203

204204
export async function deleteSession() {
205+
const cookieKeys =
206+
'academy-completed ships signpost-feed tickets verification waka'
207+
.split(' ')
208+
.forEach((key) => cookies().delete(key))
205209
cookies().delete(sessionCookieName)
206-
cookies().delete('waka-key')
207210
}
208211

209212
export async function getRedirectUri(): Promise<string> {

0 commit comments

Comments
 (0)