Created
September 16, 2022 20:48
-
-
Save austincunningham/b57b9e13431b42a6a9a5e48957a7844e to your computer and use it in GitHub Desktop.
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
var TokenSet | |
passport.use('oidc', new Strategy({client}, (tokenSet, userinfo, done)=>{ | |
TokenSet = tokenSet; | |
return done(null, tokenSet.claims()); | |
}) | |
) | |
//And on logout we can set the id_token_hint parameter | |
app.get('/logout', (req, res) => { | |
res.redirect(client.endSessionUrl({ | |
id_token_hint: TokenSet.id_token | |
} | |
)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment