mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +00:00
[EC-598] feat: fully wokring non-discoverable implementation
This commit is contained in:
@@ -60,6 +60,8 @@ export class CipherData {
|
||||
switch (this.type) {
|
||||
case CipherType.Login:
|
||||
this.login = new LoginData(response.login);
|
||||
this.fido2Key =
|
||||
response.fido2Key != undefined ? new Fido2KeyData(response.fido2Key) : undefined;
|
||||
break;
|
||||
case CipherType.SecureNote:
|
||||
this.secureNote = new SecureNoteData(response.secureNote);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { LoginApi } from "../../../models/api/login.api";
|
||||
import { Fido2KeyData } from "../../../webauthn/models/data/fido2-key.data";
|
||||
|
||||
import { LoginUriData } from "./login-uri.data";
|
||||
|
||||
@@ -9,6 +10,7 @@ export class LoginData {
|
||||
passwordRevisionDate: string;
|
||||
totp: string;
|
||||
autofillOnPageLoad: boolean;
|
||||
fido2Key?: Fido2KeyData;
|
||||
|
||||
constructor(data?: LoginApi) {
|
||||
if (data == null) {
|
||||
@@ -24,5 +26,9 @@ export class LoginData {
|
||||
if (data.uris) {
|
||||
this.uris = data.uris.map((u) => new LoginUriData(u));
|
||||
}
|
||||
|
||||
if (data.fido2Key) {
|
||||
this.fido2Key = new Fido2KeyData(data.fido2Key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user