clients/libs/auth
Jared Snider b04a699570
BEEEP/Auth/PM-35338 - Auto Submit on OTP Paste (#20250)
* PM-35338 - Auto-submit 2FA on paste for email and authenticator providers

When a code is pasted into the token input, set the form control value and
programmatically click the continue button so the submission goes through
the bitSubmit pipeline (loading state, disabled state) identically to a
manual button click.

* PM-35338 - Auto-submit new device verification on paste

When a code is pasted into the OTP input, set the form control value and
call submit() directly. The component owns both the input and submit(),
so no parent wiring is needed.

* PM-35338 - Auto-submit user verification dialog on OTP paste

Add pasteSubmit output to UserVerificationFormInputComponent, guarded to
only fire in server-side OTP mode (passwordless users). The dialog handles
the output by calling FormGroupDirective.onSubmit() so the submission goes
through the bitSubmit pipeline with proper loading state.

Note: auto-submit on paste for OTP verification applies to sensitive
actions (vault export, disable 2FA, etc.) — pending product sign-off.

* PM-35338 - Route new device verification paste through bitSubmit pipeline

Use FormGroupDirective.onSubmit() instead of calling submit() directly so
the bitSubmit directive handles loading state, form disabling, and error
propagation consistently with the other auto-submit flows in this PR.

* PM-35338 - Use signal output() for submitOnPaste in 2FA child components

New outputs should use the signal-based output() function rather than the
legacy @Output() EventEmitter pattern.

* UserVerificationFormInput - fix lint
2026-05-27 13:17:46 -05:00
..
src BEEEP/Auth/PM-35338 - Auto Submit on OTP Paste (#20250) 2026-05-27 13:17:46 -05:00
jest.config.js
package.json
project.json
README.md
test.setup.ts
tsconfig.json
tsconfig.spec.json

Auth

This lib represents the public API of the Auth team at Bitwarden. Modules are imported using @bitwarden/auth.