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.49k stars 418 forks source link

refactor(experience): add hidden identifier input for browser password managers #6146

Closed xiaoyijun closed 3 months ago

xiaoyijun commented 3 months ago

Summary

This PR introduces a mechanism to enhance browser password managers’ compatibility by adding hidden identifier input fields in SetPassword components.

These changes ensure that browser password managers accurately store and autofill user credentials, improving user experience and security.

Testing

For new registered user: image

For password reset: image

Checklist

github-actions[bot] commented 3 months ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +2.02 KB

Diff by File |Name|Diff| |---|---| |packages/experience/src/containers/SetPassword/HiddenIdentifierInput.tsx|:chart_with_upwards_trend: +802 Bytes| |packages/experience/src/containers/SetPassword/Lite.tsx|:chart_with_upwards_trend: +93 Bytes| |packages/experience/src/containers/SetPassword/SetPassword.tsx|:chart_with_upwards_trend: +93 Bytes| |packages/experience/src/hooks/use-session-storages.ts|:chart_with_upwards_trend: +127 Bytes| |packages/experience/src/pages/Register/IdentifierRegisterForm/use-on-submit.ts|:chart_with_upwards_trend: +272 Bytes| |packages/experience/src/pages/SignIn/IdentifierSignInForm/use-on-submit.ts|:chart_with_upwards_trend: +283 Bytes| |packages/experience/src/types/guard.ts|:chart_with_upwards_trend: +394 Bytes|