Use this MW to attempt silent login (prompt=none) but not require authentication.
prompt=none
See attemptSilentLogin
const { attemptSilentLogin } = require('express-openid-connect');app.get('/', attemptSilentLogin(), (req, res) => { res.render('homepage', { isAuthenticated: req.isAuthenticated() // show a login or logout button });}); Copy
const { attemptSilentLogin } = require('express-openid-connect');app.get('/', attemptSilentLogin(), (req, res) => { res.render('homepage', { isAuthenticated: req.isAuthenticated() // show a login or logout button });});
Use this MW to attempt silent login (
prompt=none
) but not require authentication.See attemptSilentLogin