title: NodeJs API login B2C without B2C login page
body: <p>All right?
  I am in need of help with Azure AD B2C implementation. I need an API that manages the login for my application and that makes a connection with AAD B2C. However, I only find login options through the B2C login page. I would like to know if there is any way to implement in Node a form of login in my application without having to use the MS login screen. User entering with password and email and validating in AD. I saw that there is ROPC, but at the same time saying that it is an insecure method.</p>
  <p>I am currently implementing it with ms graph, azure-graph, ms-rest-azure, but I think this way is wrong.
  User enter the email prefix and password via post.</p>
  <pre><code>server.post('/login', (request, response) =&gt; {
    const {email, password} = request.body
    msRestAzure.loginWithUsernamePassword(`${email}@&lt;tenant-name&gt;.onmicrosoft.com`, `${password}`, { tokenAudience: 'graph', domain: tenantId }, function (err, credentials, subscriptions) {
      if (err) console.log(err);
      console.log(credentials.tokenCache)
  </code></pre>