How to redirect to a different page in application based on "signup" vs "login"?

I am using new universal login experience, and there are two buttons on my form. One is “login” and the other “signup”. Based on which button the user clicks, I would like to redirect to a different URL. How do I implement this?

Hi @victor-wei126,

You can redirect to the sign up page by passing screen_hint as a query string parameter to the /authorize endpoint:

loginWithRedirect({ screen_hint: 'signup' })
1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.