Share via

Can the ADB2C password reset authentication code expiration time limit be modified? What is it - how long does the user have between the "forgot password" button click and having to enter the authentication code?

Vijitha Chinthaginjala 0 Reputation points
2023-05-24T13:42:55.5133333+00:00

Can the ADB2C password reset authentication code expiration time limit be modified? What is it - how long does the user have between the "forgot password" button click and having to enter the authentication code?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. Sandeep G-MSFT 21,236 Reputation points Microsoft Employee Moderator
    2023-05-26T09:35:04.6066667+00:00

    @Vijitha Chinthaginjala

    Yes, you can customize the OTP timeout value.

    This option is not available in User flows. However, this can be achieved if you use custom policy. You can check below URL and use the parameter "Use the "CodeExpirationInSeconds" tag to change the time.

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/one-time-password-technical-profile#metadata

    Time in seconds until code expiration. Minimum: 60; Maximum: 1200; Default: 600. Every time a code is provided (same code using ReuseSameCode, or a new code), the code expiration is extended. This time is also used to set retry timeout (once max attempts are reached, user is locked out from attempting to obtain new codes until this time expires)

    Do let me know if you have any further questions on this.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    Was this answer helpful?

    0 comments No comments

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.