1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

[EC-598] feat: allow storage of more information

This commit is contained in:
Andreas Coroiu
2023-01-05 16:19:42 +01:00
parent 4168f49911
commit da163992d7
6 changed files with 108 additions and 38 deletions

View File

@@ -1,19 +1,27 @@
import { Fido2KeyApi } from "../api/fido2-key.api";
export class Fido2KeyData {
key: string;
keyType: "ECDSA";
keyCurve: "P-256";
keyValue: string;
rpId: string;
origin: string;
rpName: string;
userHandle: string;
userName: string;
origin: string;
constructor(data?: Fido2KeyApi) {
if (data == null) {
return;
}
this.key = data.key;
this.keyType = data.keyType;
this.keyCurve = data.keyCurve;
this.keyValue = data.keyValue;
this.rpId = data.rpId;
this.origin = data.origin;
this.rpName = data.rpName;
this.userHandle = data.userHandle;
this.userName = data.userName;
this.origin = data.origin;
}
}