server: Removed failure callback.
the build was successful

This commit is contained in:
2018-10-15 21:26:28 +02:00
parent 0337424ab0
commit 6dd1939c5e
2 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@gisle/rpdata-frontend",
"version": "1.0.3",
"version": "1.0.4",
"description": "RPData (www.aiterp.net) frontend/proxy",
"main": "./index.js",
"scripts": {
+1 -6
View File
@@ -17,12 +17,7 @@ router.get("/login", saveReferer, passport.authenticate("auth0", {scope: "openid
res.redirect("/")
})
router.get("/error", (req, res) => {
console.error(req)
res.status(500).end("Something went wrong.")
})
router.get("/callback", passport.authenticate("auth0", { failureRedirect: "/auth/error" }), (req, res) => {
router.get("/callback", passport.authenticate("auth0"), (req, res) => {
if (req.user == null) {
throw new Error("user null");
}