Bernd Schoolmann 752719b07c [PM-46038] feat(unlock): Unlock PIN without clicking button (#24304)
* Update sdk-internal to 0.2.0-main.1202

* Implement PIN length storage in JsWasmStateBridge

sdk-internal 0.2.0-main.1202 adds required set/get/clear_pin_length members to WasmStateBridge (bitwarden/sdk-internal#1708). The SDK stores the PIN's character count unencrypted so a lock screen can read it while locked, so it is backed by a new PIN_DISK state key that clears on logout.

* Try the PIN as soon as it is fully typed

Unlocking with a PIN needed a press of Unlock, or Enter, after typing
it. The SDK now stores the PIN's length through the state bridge, and
the lock screen submits the PIN as soon as that many characters are
typed. A wrong PIN of that length counts as an attempt, as if Unlock
was pressed.

The form's submit handler restarted on every submit rather than
ignoring one while the last ran, so the automatic try plus an Enter
cost two of the five allowed attempts. A submit while the PIN is being
tried is now ignored.

The length is stored unencrypted, since the lock screen reads it while
locked.

---------

Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com>
2026-11-12 08:29:07 +09:00

Bitwarden

GitHub Workflow browser build on main GitHub Workflow CLI build on main GitHub Workflow desktop build on main GitHub Workflow web build on main


Bitwarden Client Applications

This repository houses all Bitwarden client applications except the mobile applications (iOS | android).

Please refer to the Clients section of the Contributing Documentation for build instructions, recommended tooling, code style tips, and lots of other great information to get you started.

We're Hiring!

Interested in contributing in a big way? Consider joining our team! We're hiring for many positions. Please take a look at our Careers page to see what opportunities are currently open as well as what it's like to work at Bitwarden.

Contribute

Code contributions are welcome! Please commit any pull requests against the main branch. Learn more about how to contribute by reading the Contributing Guidelines. Check out the Contributing Documentation for how to get started with your first contribution.

Security audits and feedback are welcome. Please open an issue or email us privately if the report is sensitive in nature. You can read our security policy in the SECURITY.md file.

2026-11-04 21:38:55 +00:00
Languages
TypeScript 89.6%
HTML 4.6%
Rust 2.6%
SCSS 1.1%
MDX 0.9%
Other 1%