Verifies an AAD token
var aad = require('azure-ad-jwt'); | |
var jwtToken = '<<yourtoken>>'; | |
aad.verify(jwtToken, null, function(err, result) { | |
if (result) { | |
console.log("JWT is valid"); | |
} else { | |
console.log("JWT is invalid: " + err); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment