[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf: handle session cleanup in parallel (#837)

authored by

abeer0 and committed by
GitHub
ee20d126 360fa0c3

+1 -2
+1 -2
server/api/auth/session.delete.ts
··· 1 1 export default eventHandlerWithOAuthSession(async (event, oAuthSession, serverSession) => { 2 - await oAuthSession?.signOut() 3 - await serverSession.clear() 2 + await Promise.all([oAuthSession?.signOut(), serverSession.clear()]) 4 3 5 4 return 'Session cleared' 6 5 })