Skip to content

Commit

Permalink
Fix typo in interface names
Browse files Browse the repository at this point in the history
  • Loading branch information
VDigitall committed Sep 13, 2024
1 parent 95a0fd1 commit 5b00f26
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/data/webauthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ interface PublicKeyCredentialAssertionResponse {
userHandle: BufferSource;
}

interface PublicKeyRegistartionCredentialResponseJSON {
interface PublicKeyRegistrationCredentialResponseJSON {
authenticatorAttachment: string;
id: string;
rawId: string;
Expand All @@ -140,7 +140,7 @@ interface PublicKeyCredentialAttestationResponseJSON {
attestationObject: string;
}

interface PublicKeyRegistartionCredentialResponse {
interface PublicKeyRegistrationCredentialResponse {
authenticatorAttachment: string;
id: string;
rawId: BufferSource;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 5b00f26

Please sign in to comment.