I would like to improve the user experience in the reset password flow by redirecting the user to a custom page in my application when the reset password link has expired. On that page, I want to display an error message and provide a button that allows the user to request a new reset password email.
I tried to handle the expired ticket scenario within the customization of the reset password page, but it appears that this page is rendered only after the ticket has already been validated. Therefore, it does not seem possible to catch the expired ticket state there.
I found some suggestions in the forum recommending the creation of a custom error handling page within the application. However, I was not able to find clear guidance on how to test this flow locally (the related topics I found were closed without answers). Additionally, it seems there is no way to retrieve the user’s email address from the expired ticket in order to resend the reset password email automatically.
Is there any way to intercept the ticket validation process when it has expired and redirect the user with the necessary data to a custom page?