0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/.changeset/popular-monkeys-complain.md

21 lines
539 B
Markdown
Raw Normal View History

---
"@logto/experience": minor
"@logto/schemas": minor
"@logto/core": minor
---
add support for `login_hint` parameter in sign-in method
This feature allows you to provide a suggested identifier (email, phone, or username) for the user, improving the sign-in experience especially in scenarios where the user's identifier is known or can be inferred.
Example:
```javascript
// Example usage (React project using React SDK)
void signIn({
redirectUri,
loginHint: 'user@example.com',
firstScreen: 'signIn', // or 'register'
});
```