title: AngularFire2 Microsoft Auth delivers POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyAssertion 400
body: <p>I try to implement Sign-In with Microsoft in Firebase via angularfire2.
  Google Sign-In went well with:</p>
  <pre><code> return new Promise&lt;any&gt;((resolve, reject) =&gt; {
        let provider = new firebase.auth.GoogleAuthProvider();
        provider.addScope('profile');
        provider.addScope('email');
        this.afAuth
          .signInWithPopup(provider)
          .then(res =&gt; {
  
            resolve(res);
          })
      })
  </code></pre>
  <p>Now I'm trying Microsoft Sign-In with</p>
  <pre><code>  return new Promise&lt;any&gt;((resolve, reject) =&gt; {
        let provider = new firebase.auth.OAuthProvider('microsoft.com');
        firebase.auth().signInWithPopup(provider)
  
          .then((result) =&gt; {
            console.log(&quot;Result: &quot; + JSON.stringify(result))
            resolve(result);
          })
          .catch((error) =&gt; {
            // Handle error.
          });
      })
  </code></pre>
  <p>But it just delivers an error:</p>
  <pre><code>POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyAssertion?key=AIzaS.... 400
  </code></pre>
  <p>I set up the Microsoft Authentication with this tutorial:
  <a href="https://medium.com/nerd-for-tech/adding-microsoft-authentication-using-firebase-485f0bd1e3eb" rel="nofollow noreferrer">https://medium.com/nerd-for-tech/adding-microsoft-authentication-using-firebase-485f0bd1e3eb</a></p>
  <p>Am I'm missing something in my function or how does the Microsoft Sing-In work?</p>