Hosted Log In Page - Always Shows Log In and never Register

I am using react-native-auth0 2.1.0

Here is the relevant code snippet
await auth0
.webAuth
.authorize({
scope: ‘openid profile email’,
audience: ‘http’,
mode: ‘signUp’,
allowLogin: ‘false’,
allowSignUp: ‘true’,
});

This was working well until I added a hosted log in page. What is going wrong?

1 Like

Hi @mike0368

so is your requirement to only sow signup and not login? Can you post a screenshot of what you are getting right now vs what you want?

Hey @ashish
So we have two buttons in the app:

  1. Log In
  2. Sign Up

When the user presses Log In, the app correctly shows the Log In Auth0 view.
The problem becomes when I try to link up the Sign Up button - which should show the registration view - for some reason it’s always going to the Log In view.

The snippet which I posted above is the code linked up with the Sign Up button

Take a look at this thread. I’m not 100% it is applicable to your problem but the approach should work for you too I believe Django: Redirect to Auth0 sign up tab instead of login

In case it doesn’t, let us know so we can look for another solution!

Is there a way without setting up a Custom Log In Page?

Issue resolved using Custom Log In Page code.
Thanks

1 Like

Glad to hear that! Thanks for sharing!

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