From 5b00f26cc3610ea460f21d190fa9c89a71be1b39 Mon Sep 17 00:00:00 2001 From: Vitalii Martyniak Date: Fri, 13 Sep 2024 08:13:24 +0200 Subject: [PATCH] Fix typo in interface names --- src/data/webauthn.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/data/webauthn.ts b/src/data/webauthn.ts index 9e712f9cff7d..f891b4b87772 100644 --- a/src/data/webauthn.ts +++ b/src/data/webauthn.ts @@ -127,7 +127,7 @@ interface PublicKeyCredentialAssertionResponse { userHandle: BufferSource; } -interface PublicKeyRegistartionCredentialResponseJSON { +interface PublicKeyRegistrationCredentialResponseJSON { authenticatorAttachment: string; id: string; rawId: string; @@ -140,7 +140,7 @@ interface PublicKeyCredentialAttestationResponseJSON { attestationObject: string; } -interface PublicKeyRegistartionCredentialResponse { +interface PublicKeyRegistrationCredentialResponse { authenticatorAttachment: string; id: string; rawId: BufferSource; @@ -207,8 +207,8 @@ const _generateRegistrationCredentialsJSON = async ( publicKey: registrationOptions, }); - const publicKeyCredential = result as PublicKeyRegistartionCredentialResponse; - const credentials: PublicKeyRegistartionCredentialResponseJSON = { + const publicKeyCredential = result as PublicKeyRegistrationCredentialResponse; + const credentials: PublicKeyRegistrationCredentialResponseJSON = { id: publicKeyCredential.id, authenticatorAttachment: publicKeyCredential.authenticatorAttachment, type: publicKeyCredential.type, @@ -247,7 +247,7 @@ const _generateAuthenticationCredentialsJSON = async ( const _verifyRegistration = async ( hass: HomeAssistant, - credentials: PublicKeyRegistartionCredentialResponseJSON + credentials: PublicKeyRegistrationCredentialResponseJSON ) => { await hass.callWS({ type: "config/auth_provider/passkey/register_verify",