logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.77k stars 442 forks source link

bug: login with `loginHint` does not skip the username input #6759

Open ImSingee opened 1 week ago

ImSingee commented 1 week ago

Describe the bug

If invoked with a loginHint, the username/email filled in correctly, but user still have to click "Sign in" again in the logto page.

For example, on the login page, the user has already input the email:

image

Call logto signIn method with a loginHint, then the user will be redirected to the following page:

image

The user has to click the Sign in again, this is a terrible UX.

Expected behavior

Show the page as if user clicks the Sign in in logto.

For example, directly navigate the user to the following page:

image

How to reproduce?

logtoClient..signIn({
      redirectUri: `${location.protocol}//${location.host}/login/callback`,
      firstScreen: "sign_in",
      loginHint: 'x@xxx.com`,
    });

Context

BTW, I also try the identifier:sign_in, but it doesn't work either.

darcyYe commented 3 days ago

Thank you for your suggestion. In fact, this isn't a bug, but more like a feature request. It could be considered to support: automatically moving to the next step once the form is filled out. However, the reality is that it's hard to determine if the user still wants to modify the entered values after filling out the form, so it's more reasonable to let the user choose to proceed to the next step themselves.

darcyYe commented 3 days ago

Would you like to convert this issue to be a feature request and describe your needs? The team will review GitHub issues every week and have internal discussion to determine whether we should support those feature requests.