bitwarden / jslib

Common code referenced across Bitwarden JavaScript projects.
https://bitwarden.com
GNU General Public License v3.0
134 stars 138 forks source link

[PS-302] Added DeviceId to the Send 2FA email request #782

Closed fedemkr closed 2 years ago

fedemkr commented 2 years ago

Type of change

Objective

Add DeviceId to the 2FA email request and set it when calling the endpoint of resending the 2FA email to see if the 2FA email is because of a new device login.

Relates to: Server change

Clients updates:

Code changes

Testing requirements

On the clients' verification code screen, test that resending code works as expected on new devices login as well as on already known devices, i.e. the email arrives with the code.

Before you submit