|
@ -29,7 +29,7 @@ const baseURL = function () { |
|
|
|
|
|
|
|
|
const portier = new PortierClient({ |
|
|
const portier = new PortierClient({ |
|
|
//broker: process.env.PORTIER_URL,
|
|
|
//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) => { |
|
|
app.post("/auth", formParser, (req, res) => { |
|
|
|
|
|
|
|
|
|
|
|
console.log("auth"); |
|
|
console.log(baseURL()); |
|
|
console.log(baseURL()); |
|
|
|
|
|
|
|
|
//console.log(req.body);
|
|
|
//console.log(req.body);
|
|
@ -239,6 +240,7 @@ app.post("/auth", formParser, (req, res) => { |
|
|
app.post("/verify", formParser, (req, res) => { |
|
|
app.post("/verify", formParser, (req, res) => { |
|
|
//console.log(req.body);
|
|
|
//console.log(req.body);
|
|
|
|
|
|
|
|
|
|
|
|
console.log("verify"); |
|
|
console.log(baseURL()); |
|
|
console.log(baseURL()); |
|
|
|
|
|
|
|
|
portier.verify(req.body.id_token).then((email) => { |
|
|
portier.verify(req.body.id_token).then((email) => { |
|
|