diff --git a/login/index.js b/login/index.js index 316f52d..4164711 100644 --- a/login/index.js +++ b/login/index.js @@ -29,7 +29,7 @@ const baseURL = function () { const portier = new PortierClient({ //broker: process.env.PORTIER_URL, - redirectUri: baseURL() + "/login/verify", + redirectUri: "https://flylocal.us/login/verify", }); @@ -224,6 +224,7 @@ app.get("/", (req, res) => { app.post("/auth", formParser, (req, res) => { + console.log("auth"); console.log(baseURL()); //console.log(req.body); @@ -239,6 +240,7 @@ app.post("/auth", formParser, (req, res) => { app.post("/verify", formParser, (req, res) => { //console.log(req.body); + console.log("verify"); console.log(baseURL()); portier.verify(req.body.id_token).then((email) => { diff --git a/middleware/auth-guard.js b/middleware/auth-guard.js index 257a4f6..d178e94 100644 --- a/middleware/auth-guard.js +++ b/middleware/auth-guard.js @@ -1,6 +1,6 @@ export default function ({ route, redirect, app }) { //console.log("auth: " + $auth) - console.log("app: " + app) + console.log("app cookie: " + app.$cookies.get('email')) if (route.path.includes('/flights')) { const REDIRECT_URL = '/login/?redirect=' + route.path if (!app.$cookies.get('email')) {