How can I let user redirect to Sign in page instead of directly signing in?

Hello . I appreciate if I could get help around sign up process.

I am using below environment for implementing Sign Up process.

My use case is that I want to let user manually sign-in after the sign-up process instead of auto-login. May I ask for advice for which function is effective to achieve my goal ?

I saw below page before writing my comment but did not answer to my question.

Hi @y-watanabe,

Welcome to the Auth0 Community and sorry for the late reply.

You can use a post-login action that checks for sign-up by querying if the event.stats.logins_count is equal to 1, then use something that looks similar to this:

const returnTo = event.client.client_id; api.redirect.sendUserTo(‘https://{{auth0_domain}}/v2/logout?client_id=${returnTo}’);

In this case, the Action will redirect to the first Allowed Logout URL configured in the Application you use to perform the login flow. This is mentioned in the following Knowledge Article as well.

Additionally you can also check out the Redirect users with state option.

I hope this helps.
Thanks,
Remus

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