|
@ -18,7 +18,8 @@ router.get("/login", saveReferer, passport.authenticate("auth0", {scope: "openid |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
router.get("/error", (req, res) => { |
|
|
router.get("/error", (req, res) => { |
|
|
res.render("Login error") |
|
|
|
|
|
|
|
|
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", { failureRedirect: "/auth/error" }), (req, res) => { |
|
|