auth0/auth0-vue

need an example to redirect to signup page using new universal login

cookiejest opened this issue · 4 comments

Checklist

  • The issue can be reproduced in the auth0-vue sample app (or N/A).
  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

I cant seem to find a way to redirect to the signup page by default. The other ways seem to require to use the old style universal login that looks dated. Do you have an example of how to do that with this library?

Reproduction

trying this.loginWithRedirect({ authorizationParams: { screen_hint: "signUp" },

only works with old universal not new.

Additional context

No response

auth0-vue version

latest

Vue version

latest

Which browsers have you tested in?

Chrome, Firefox

Thanks for reaching out.

You need to use signup, not signUp. I just gave it a try and it correctly shows the signup page for me.

More info on this can be found here: https://auth0.com/docs/authenticate/login/auth0-universal-login/new-experience#signup

tried that, doesn't seem to be functional?

It seems to work for me when using the new login experience.

Can you verify you see the screen_hint set to signup in the network tab for the request to /authorize?

Hmm yeh. It worked now. I must have done something in the auth0 UI to disable it somehow when I checked the first time