I have created an action that users needs to verify their email before they can sign in. As expected I get ther ?error=unauthorized url back. However whenever I click my loginbutton again I don’t get the universial login page. Tried everything that I can think of. Any suggestions?
Create action that reject users to login without verifying their email address
In react I have a loginbutton that uses the loginWithRedirect function
On the universal login page login with an unverified email
In react capture the rejection and let the user know that they couldn’t log in since email is not verified
if the user clicks the login button again nothing happens. Here they should be redirected to the universal login page?
However I found a workaround (or is it by designed?). When I capture the rejection in react I call the logout function and login flow behaves as expected