+1
-1
@@ -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
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user