From 177b58083eee4c182fe892626760f1cef54865b5 Mon Sep 17 00:00:00 2001 From: Victor Bojica Date: Mon, 28 Oct 2024 08:34:59 +0200 Subject: [PATCH] pr fixes --- lib/ts/recipe/webauthn/types.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/ts/recipe/webauthn/types.ts b/lib/ts/recipe/webauthn/types.ts index 5ea126719..b4ec1651e 100644 --- a/lib/ts/recipe/webauthn/types.ts +++ b/lib/ts/recipe/webauthn/types.ts @@ -112,6 +112,8 @@ type ConsumeRecoverAccountTokenErrorResponse = { status: "RECOVER_ACCOUNT_TOKEN_ type RemoveCredentialErrorResponse = { status: "CREDENTIAL_NOT_FOUND_ERROR" }; +type GetCredentialErrorResponse = { status: "CREDENTIAL_NOT_FOUND_ERROR" }; + type DecodeCredentialErrorResponse = { status: "WRONG_CREDENTIALS_ERROR" }; type Base64URLString = string; @@ -394,11 +396,12 @@ export type RecipeInterface = { status: "OK"; credential: { id: string; - rp_id: string; - created_at: number; + rpId: string; + recipeUserId: RecipeUserId; + createdAt: number; }; } - | RemoveCredentialErrorResponse + | GetCredentialErrorResponse >; listCredentials(input: { @@ -408,8 +411,8 @@ export type RecipeInterface = { status: "OK"; credentials: { id: string; - rp_id: string; - created_at: number; + rpId: string; + createdAt: number; }[]; }>; };