Skip to content

Instantly share code, notes, and snippets.

@etse
etse / aad-unleash.tsx
Last active March 20, 2018 15:12
AAD with unleash example
passport.use(new OIDCStrategy(config,
function(profile, done) {
console.log("OIDC-Callback:", profile, done);
if (!profile.oid) {
console.log("missing oid");
return done(new Error("No oid found"), null);
}
// asynchronous verification, for effect...
process.nextTick(function () {
console.log("userverification?", profile.oid);