forked from
npmx.dev/npmx.dev
[READ-ONLY]
a fast, modern browser for the npm registry
1export default eventHandlerWithOAuthSession(async (event, oAuthSession, serverSession) => {
2 // Even tho the signOut also clears part of the server cache should be done in order
3 // to let the oAuth package do any other clean up it may need
4 await oAuthSession?.signOut()
5 await serverSession.clear()
6 return 'Session cleared'
7})