|
|
@ -3,6 +3,7 @@ |
|
|
|
// https://paul-senon.medium.com/node-express-js-cookies-set-get-secure-884311606148
|
|
|
|
|
|
|
|
import express from "express"; |
|
|
|
const dotenv = require('dotenv'); |
|
|
|
const formParser = require("body-parser").urlencoded({ extended: false }); |
|
|
|
import { PortierClient } from "portier"; |
|
|
|
|
|
|
@ -27,6 +28,8 @@ const cookieParser = require('cookie-parser'); |
|
|
|
// POST /logout Clear session cookies
|
|
|
|
// GET /logout Display a button to POST /logout
|
|
|
|
|
|
|
|
dotenv.config({ path: './.env' }); |
|
|
|
|
|
|
|
const portier = new PortierClient({ |
|
|
|
//broker: process.env.PORTIER_URL,
|
|
|
|
redirectUri: process.env.BASE_URL + "/login/verify", |
|
|
|