mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 07:13:32 +00:00
added feature flag, and services for tokenable when adding Authenticator two factor; (#10261)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { TwoFactorProviderRequest } from "./two-factor-provider.request";
|
||||
|
||||
export class DisableTwoFactorAuthenticatorRequest extends TwoFactorProviderRequest {
|
||||
key: string;
|
||||
userVerificationToken: string;
|
||||
}
|
||||
@@ -3,4 +3,5 @@ import { SecretVerificationRequest } from "./secret-verification.request";
|
||||
export class UpdateTwoFactorAuthenticatorRequest extends SecretVerificationRequest {
|
||||
token: string;
|
||||
key: string;
|
||||
userVerificationToken: string;
|
||||
}
|
||||
|
||||
@@ -3,10 +3,12 @@ import { BaseResponse } from "../../../models/response/base.response";
|
||||
export class TwoFactorAuthenticatorResponse extends BaseResponse {
|
||||
enabled: boolean;
|
||||
key: string;
|
||||
userVerificationToken: string;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
this.enabled = this.getResponseProperty("Enabled");
|
||||
this.key = this.getResponseProperty("Key");
|
||||
this.userVerificationToken = this.getResponseProperty("UserVerificationToken");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user