mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
[EC-598] feat: add fido2Key to cipher
This commit is contained in:
19
libs/common/src/models/data/fido2-key.data.ts
Normal file
19
libs/common/src/models/data/fido2-key.data.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Fido2KeyApi } from "../api/fido2-key.api";
|
||||
|
||||
export class Fido2KeyData {
|
||||
key: string;
|
||||
rpId: string;
|
||||
origin: string;
|
||||
userHandle: string;
|
||||
|
||||
constructor(data?: Fido2KeyApi) {
|
||||
if (data == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.key = data.key;
|
||||
this.rpId = data.rpId;
|
||||
this.origin = data.origin;
|
||||
this.userHandle = data.userHandle;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user