I have a specific requirement. I want to change the flow for the reset password page in PassKey Authentication. When a user tries to reset their password, I want them to be redirected to a custom security question page that I have created using Next.js and MongoDB. If the user correctly answers the security question, they should be directly redirected to the home page.
I have already created a security question page that appears after the signup page, and it is working. The security question, along with the user ID, is saved in the database.