Skip to content

Commit 0264234

Browse files
iiio2taskylizard
authored andcommitted
perf: handle session cleanup in parallel (npmx-dev#837)
1 parent db2f5d5 commit 0264234

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

server/api/auth/session.delete.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export default eventHandlerWithOAuthSession(async (event, oAuthSession, serverSession) => {
2-
await oAuthSession?.signOut()
3-
await serverSession.clear()
2+
await Promise.all([oAuthSession?.signOut(), serverSession.clear()])
43

54
return 'Session cleared'
65
})

0 commit comments

Comments
 (0)