Skip to content

Instantly share code, notes, and snippets.

@svvac
svvac / app1.js
Last active August 16, 2021 11:07
openid-client test app
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(),