title: How to build a simple NodeJS login using Microsoft OAuth
body: <p>I have followed this tutorial (<a href="https://medium.com/authpack/easy-google-auth-with-node-js-99ac40b97f4c" rel="nofollow noreferrer">https://medium.com/authpack/easy-google-auth-with-node-js-99ac40b97f4c</a>) to create a simple Google OAuth and I have accomplished it successfully.</p>
  <p>Now I am trying to do the same with Microsoft and I cannot.</p>
  <p>I have ready a lot of posts about it, but I am failing.</p>
  <p>I have one app in the Azure Dev Portal, I have tried to send the user to the URL <code>https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={{my_clien_id}}&amp;response_type=code id_token&amp;scope=https://graph.microsoft.com/email</code>, but I am receiving error messages only.</p>
  <p>How can I have the user email using the Microsoft OAuth?</p>