mirror of
https://github.com/bitwarden/browser
synced 2026-02-07 20:24:01 +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:
@@ -0,0 +1,25 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { Component } from "@angular/core";
|
||||
import { RouterModule } from "@angular/router";
|
||||
|
||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||
import { ButtonModule } from "@bitwarden/components";
|
||||
|
||||
/**
|
||||
* This component is used to display a message to the user that their authentication session has expired.
|
||||
* It provides a button to navigate to the login page.
|
||||
*/
|
||||
@Component({
|
||||
selector: "app-authentication-timeout",
|
||||
standalone: true,
|
||||
imports: [CommonModule, JslibModule, ButtonModule, RouterModule],
|
||||
template: `
|
||||
<p class="tw-text-center">
|
||||
{{ "authenticationSessionTimedOut" | i18n }}
|
||||
</p>
|
||||
<a routerLink="/login" bitButton block buttonType="primary">
|
||||
{{ "logIn" | i18n }}
|
||||
</a>
|
||||
`,
|
||||
})
|
||||
export class AuthenticationTimeoutComponent {}
|
||||
Reference in New Issue
Block a user