Share via

Entra External ID (PKCE) – Forgot Password “Resend Code” Causes Infinite Loading

Sachin More 5 Reputation points
2026-02-13T06:33:55.2266667+00:00

Hi,

I’m working on a React-based application using Azure Entra External ID with the PKCE user flow for authentication.

During the login process, I clicked on the “Forgot password” link and selected email verification. I received the verification code successfully.

However, when I wait for the “Resend code” button to appear and click it:

The popup screen shows a loading indicator.

I receive a new verification code via email.

But the popup remains in a loading state indefinitely and does not proceed further.

It seems the resend operation is partially successful (since I receive the new code), but the UI gets stuck in an infinite loading state.

Has anyone experienced this issue? Is there a configuration setting or known limitation that could cause this behavior?

Any guidance would be appreciated.

Thanks.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-02-13T06:34:04.8666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The issue you're experiencing with the "Resend Code" button causing an infinite loading state in your React application using Azure Entra External ID with PKCE user flow may not be directly addressed in the provided context. However, here are some general troubleshooting steps you can consider:

    1. Check Network Requests: Use the browser's developer tools to monitor network requests when you click the "Resend Code" button. Ensure that the request is being sent and that you receive a valid response.
    2. Handle State Changes: Ensure that your application correctly handles the state changes after receiving the new verification code. The UI should update to reflect the new state instead of remaining in a loading state.
    3. Error Handling: Implement error handling in your code to manage scenarios where the loading state does not resolve. This can help provide feedback to the user if something goes wrong.
    4. Review Documentation: Check the Azure Entra documentation for any known issues or limitations regarding the "Forgot Password" functionality and the PKCE flow. There may be specific configurations or updates required.
    5. Testing in Different Environments: If possible, test the functionality in different environments (e.g., development vs. production) to see if the issue persists.

    If the problem continues, consider reaching out to Azure support for more specific guidance related to Azure Entra External ID and the PKCE user flow.


    References:

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.