I'm trying to make a auth with microsoft azure, I've registered my app in some places like the Azure portal, y the link to register app in easyauth.azurewebsites.net, enven here apps.dev.microsoft.com, and then i copy de App Id in my code, also i'm trying to use the Graph API to auth and to use some Outlook services in a connection to a local app using lampp, and the app is in php. when I register the app i use the url localhost/app/app.php
here's the code I'm trying with easy auth
<script src="jquery-3.2.1.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#theButton").on('click',function(){
AzureADAuth.getAccessToken()
.then(function(token){
alert(token);
})
.error(function(err){
alert("something gone wrong")
});
});
});