From 635f4ed8ea2f1ee3eb163eb1c5a4d4f2c9b12015 Mon Sep 17 00:00:00 2001 From: Segev Malool Date: Sun, 19 Nov 2023 00:50:29 -0800 Subject: [PATCH] correct user id type from string to ArrayBuffer/BufferSource (#148) Co-authored-by: Segev Malool --- types/main.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/main.d.ts b/types/main.d.ts index a6772c12..2f95ead8 100644 --- a/types/main.d.ts +++ b/types/main.d.ts @@ -71,7 +71,7 @@ declare module "fido2-lib" { interface PublicKeyCredentialCreationOptions { rp: { name: string; id: string; icon?: string }; - user: { id: string; name: string; displayName: string }; + user: { id: ArrayBuffer; name: string; displayName: string }; challenge: ArrayBuffer; pubKeyCredParams: Array<{ type: "public-key"; alg: number }>; timeout?: number;