MCPcopy Create free account
hub / github.com/emwalker/digraph / onCompleted

Function onCompleted

client/src/server/configurePassport.ts:66–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 const variables = { input: { sessionId } }
65
66 const onCompleted = () => {
67 console.log('Deleted session for user', req.user?.id)
68 req.logout((err) => {
69 if (err) {
70 console.log('Error during logout:', err)
71 }
72 res.redirect('/')
73 })
74 }
75
76 const onError = (error: Error) => {
77 const userId = req.user?.id

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected