mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
3d3a220306
* chore: remove dev feature guard for new first screens * chore: add changeset * chore(experience): add comments for identifier sign-in and register page
1.2 KiB
1.2 KiB
@logto/integration-tests | @logto/experience | @logto/core |
---|---|---|
minor | minor | minor |
add support for additional first screen options
This feature introduces new first screen options, allowing developers to customize the initial screen presented to users. In addition to the existing sign_in
and register
options, the following first screen choices are now supported:
identifier:sign_in
: Only display specific identifier-based sign-in methods to users.identifier:register
: Only display specific identifier-based registration methods to users.reset_password
: Allow users to directly access the password reset page.single_sign_on
: Allow users to directly access the single sign-on (SSO) page.
Example:
// Example usage (React project using React SDK)
void signIn({
redirectUri,
firstScreen: 'identifier:sign_in',
/**
* Optional. Specifies which sign-in methods to display on the identifier sign-in page.
* If not specified, the default sign-in experience configuration will be used.
* This option is effective when the `firstScreen` value is `identifier:sign_in`, `identifier:register`, or `reset_password`.
*/
identifiers: ['email', 'phone'],
});