mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33: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:
@@ -47,7 +47,6 @@ export abstract class LoginStrategyServiceAbstraction {
|
||||
* Auth Request. Otherwise, it will return null.
|
||||
*/
|
||||
getAuthRequestId: () => Promise<string | null>;
|
||||
|
||||
/**
|
||||
* Sends a token request to the server using the provided credentials.
|
||||
*/
|
||||
@@ -74,7 +73,11 @@ export abstract class LoginStrategyServiceAbstraction {
|
||||
*/
|
||||
makePreloginKey: (masterPassword: string, email: string) => Promise<MasterKey>;
|
||||
/**
|
||||
* Emits true if the two factor session has expired.
|
||||
* Emits true if the authentication session has expired.
|
||||
*/
|
||||
twoFactorTimeout$: Observable<boolean>;
|
||||
authenticationSessionTimeout$: Observable<boolean>;
|
||||
/**
|
||||
* Sends a token request to the server with the provided device verification OTP.
|
||||
*/
|
||||
logInNewDeviceVerification: (deviceVerificationOtp: string) => Promise<AuthResult>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user