currently we have an issue that after user changes password, we want to redirect to the login page again … and there are a couple issues with the redirect_to field solution
- when the link expires, we want to show the expire page; but it will continue to go to the redirect url
- the redirect can only go to one url (in our case, depending on the user role we have 2 urls)
As such, I am trying to play w/ the Actions to achieve the above. I think we can add an action code in Post Change Password Flow. This should be triggered only after successful password reset (which addresses the expire page I believe) ; also we should be able to redirect based on user metadata to achieve better user experience
Specifically
In PostLoginAPI i can redirect by calling api.redirect.sendUserTo(url)
in PostChangePasswordAPI theres’ no such method. we need the redirect method here too