Created
June 8, 2015 18:28
-
-
Save dei79/f894a52607ce1a63dfc7 to your computer and use it in GitHub Desktop.
Verifies an AAD token
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 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