mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 03:03:43 +00:00
* feat(device-approval-persistence): [PM-9112] Device Approval Persistence - Added in view cache data needed to persist the approval process. Clears after 2 minutes.
18 lines
761 B
TypeScript
18 lines
761 B
TypeScript
import { Jsonify } from "type-fest";
|
|
|
|
import { AuthRequest } from "@bitwarden/common/auth/models/request/auth.request";
|
|
import { AuthRequestResponse } from "@bitwarden/common/auth/models/response/auth-request.response";
|
|
import { View } from "@bitwarden/common/models/view/view";
|
|
|
|
export class LoginViaAuthRequestView implements View {
|
|
authRequest: AuthRequest | undefined = undefined;
|
|
authRequestResponse: AuthRequestResponse | undefined = undefined;
|
|
fingerprintPhrase: string | undefined = undefined;
|
|
privateKey: string | undefined = undefined;
|
|
publicKey: string | undefined = undefined;
|
|
|
|
static fromJSON(obj: Partial<Jsonify<LoginViaAuthRequestView>>): LoginViaAuthRequestView {
|
|
return Object.assign(new LoginViaAuthRequestView(), obj);
|
|
}
|
|
}
|