title: How do I make 'forgot password' working in react-aad-msal with Azure AD B2C?
body: <p>I am using <a href="https://github.com/syncweek-react-aad/react-aad" rel="nofollow noreferrer">react-aad-msal</a> with Azure AD B2C. I have sign-in and sign-out working. However, when I click 'Forgot your password?', the auth window disappears and nothing happens. </p>
  
  <p><a href="https://i.stack.imgur.com/D6Hmf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D6Hmf.png" alt="enter image description here"></a></p>
  
  <p>It seems I need to specify name of my 'forgot password' policy, but I do not know where to put it.</p>
  
  <p>Based on Tony's answer added this code to my App's render:</p>
  
  <pre><code>if (window.location.href.indexOf("error_description=AADB2C90118") &gt;= 0)
      {
        return &lt;AzureAD
        provider={
          new MsalAuthProviderFactory({
            authority: 'https://login.microsoftonline.com/tfp/x5aaas.onmicrosoft.com/B2C_1_PwdReset', 
            clientID: 'a1568977-3095-4bf6-a6d6-c10c87658488',
            scopes: ['https://x5aaas.onmicrosoft.com/ui/use'],
            type: LoginType.Redirect,
            postLogoutRedirectUri: window.origin,
          })
        }
        unauthenticatedFunction={this.unauthenticatedFunction}
        userInfoCallback={this.userJustLoggedIn}
        authenticatedFunction={this.authenticatedFunction}
      /&gt;;
      }
  </code></pre>
  
  <p>I see that after I click "Forgot password?", the condition is true, and return happens. However, the window for password reset does not show up and I get redirected back to my app URL.</p>
  
  <p>Any suggestions?</p>