I need to close server after getting callback from /auth/github/callback url. With usual HTTP API closing server is currently supporting with s
/auth/github/callback
In express v3 they removed this function.
You can still achieve the same by assigning the result of app.listen() function and apply close on it:
app.listen()
var server = app.listen(3000); server.close()
https://github.com/visionmedia/express/issues/1366