This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const openid = require('openid-client'); | |
const helpers = require('./helpers'); | |
const app1 = express(); | |
app1.get('/login', async (req, res) => { | |
try { | |
// Store authentication state in a secretbox cookie | |
const authstate = { | |
date: new Date(), |