title: Teams tab authentication
body: <p>I'm trying to figure out how to use the <code>microsoftTeams.authentication.authenticate()</code> function but I'm really confused. When I call the function, a new tab is opened in my browser (Chrome) window and not within Teams itself. Is this normal behavior? The authentication works and redirects to a callback url where I call the <code>microsoftTeams.authentication.notifySuccess()</code> function but it doesn't get back to the <code>microsoftTeams.authentication.authenticate()</code> success callback (always hits the failure callback). Is this an issue with <code>validDomains</code>? I'm pretty lost. Any help would be great! Thank you.</p>
  
  <pre><code>microsoftTeams.authentication.authenticate({
      url: "/auth",
      width: 500,
      height: 500,
      successCallback: () =&gt; {
          alert("auth success")
          // Redirect to app
          window.location.href = "/app"
      },
      failureCallback: () =&gt; {
          alert("auth failure")
      }
  })
  </code></pre>