Browser redirect to sign up instead of log in? #134
-
I'm using Fief for a browser frontend (with a backend RESTful API). My landing page for the frontend website has two buttons: one to sign up and one to log in.
There is no equivalent |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hail, @pap024 👋 Welcome to Fief's kingdom! Our team will get back to you very soon to help. In the meantime, take a minute to star our repository ⭐️ Farewell! |
Beta Was this translation helpful? Give feedback.
-
Hi @pap024 👋 Great question! It's actually possible but was poorly documented and tooled. This is now fixed! So here is how you can do that:
fiefAuth.redirectToLogin('http://localhost:8080/callback.html', { extrasParams: { screen: 'register' } }); |
Beta Was this translation helpful? Give feedback.
Hi @pap024 👋 Great question! It's actually possible but was poorly documented and tooled. This is now fixed!
So here is how you can do that:
screen
on the authorize URL to force either the login or register page. See here ➡️ https://docs.fief.dev/going-further/authorize-url/redirectToLogin
method of the browser integration was not able to accept those optional parameters. This is now fixed inv0.12.0
. Example: