0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/.changeset/proud-books-itch.md
simeng-li 2626616775
fix(experience): allow link social account on sign-in only mode (#6560)
* fix(experience): allow link social account on sign-in only mode

allow link social account, when registration is disabled;

* chore: add changeset

add changeset

* chore: fix typos

fix typos
2024-09-10 15:45:07 +08:00

1.7 KiB

@logto/experience-legacy @logto/experience
minor minor

allow link new social identity to an existing user account when registration is disabled.

Previous behavior

Sign-in with a social identity that does not have an existing user account will throw an identity_not_exist error. When the registration is disabled, the error message will be shown, the user will not be able to create a new account or link the social identity to an existing account via verified email or phone number.

Expected behavior

When the registration is disabled, if a related user account is found, the user should be able to link the social identity to an existing account via a verified email or phone number.

Updates

When the registration is disabled:

  • Show identity_not_exist error message if no related user account is found.
  • Automatically link the social identity to the existing account if a related user account is found and social automatic account linking is enabled.
  • Redirect the user to the social link account page if a related user account is found and social automatic account linking is disabled.
  • Hide the register button on the social link account page if the registration is disabled.

When the registration is enabled:

  • Automatically register a new account with the social identity if no related user account is found.
  • Automatically link the social identity to the existing account if a related user account is found and social automatic account linking is enabled.
  • Redirect the user to the social link account page if a related user account is found and social automatic account linking is disabled.
  • Show the register new account button on the social link account page.