Add U2F support

This commit is contained in:
Jonas Lochmann
2022-09-22 08:47:06 +02:00
parent 04aa2ce517
commit 613776cbf9
64 changed files with 2501 additions and 134 deletions
+13
View File
@@ -35,6 +35,7 @@ export interface ServerDataStatus {
krq?: Array<ServerKeyRequest> // pendingKeyRequests
kr?: Array<ServerKeyResponse> // keyResponses
dh?: ServerDhKey // Diffie Hellman
u2f?: U2fData
fullVersion: number // fullVersionUntil
message?: string
apiLevel: number
@@ -258,3 +259,15 @@ export interface ServerDhKey {
v: string // version
k: string // key, base64
}
export interface U2fData {
v: string // version
d: Array<U2fItem> // data
}
export interface U2fItem {
u: string // userId
a: number // addedAt
h: string // key handle, base64
p: string // public key, base64
}