mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
feat(auth): [PM-8221] implement device verification for unknown devices
Add device verification flow that requires users to enter an OTP when logging in from an unrecognized device. This includes: - New device verification route and guard - Email OTP verification component - Authentication timeout handling PM-8221
This commit is contained in:
@@ -275,6 +275,12 @@ export class LoginComponent implements OnInit, OnDestroy {
|
||||
return;
|
||||
}
|
||||
|
||||
// Redirect to device verification if this is an unknown device
|
||||
if (authResult.requiresDeviceVerification) {
|
||||
await this.router.navigate(["device-verification"]);
|
||||
return;
|
||||
}
|
||||
|
||||
await this.loginSuccessHandlerService.run(authResult.userId);
|
||||
|
||||
if (authResult.forcePasswordReset != ForceSetPasswordReason.None) {
|
||||
|
||||
Reference in New Issue
Block a user