Function attemptSilentLogin

  • Use this MW to attempt silent login (prompt=none) but not require authentication.

    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
    });
    });

    Returns RequestHandler