mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
* Renamed fido2key property username to userDisplayName * Renamed username property on fido2key object to userdisplayname * updated username to userDisplayName in fido2 export
34 lines
785 B
TypeScript
34 lines
785 B
TypeScript
import { Fido2KeyApi } from "../../api/fido2-key.api";
|
|
|
|
export class Fido2KeyData {
|
|
nonDiscoverableId: string;
|
|
keyType: "public-key";
|
|
keyAlgorithm: "ECDSA";
|
|
keyCurve: "P-256";
|
|
keyValue: string;
|
|
rpId: string;
|
|
userHandle: string;
|
|
counter: string;
|
|
|
|
// Extras
|
|
rpName: string;
|
|
userDisplayName: string;
|
|
|
|
constructor(data?: Fido2KeyApi) {
|
|
if (data == null) {
|
|
return;
|
|
}
|
|
|
|
this.nonDiscoverableId = data.nonDiscoverableId;
|
|
this.keyType = data.keyType;
|
|
this.keyAlgorithm = data.keyAlgorithm;
|
|
this.keyCurve = data.keyCurve;
|
|
this.keyValue = data.keyValue;
|
|
this.rpId = data.rpId;
|
|
this.userHandle = data.userHandle;
|
|
this.counter = data.counter;
|
|
this.rpName = data.rpName;
|
|
this.userDisplayName = data.userDisplayName;
|
|
}
|
|
}
|