Skip to content

Commit

Permalink
Merge pull request #61 from davidfiala/main
Browse files Browse the repository at this point in the history
fix typo in types: coutner -> counter
  • Loading branch information
dagnelies authored Jul 29, 2024
2 parents de084aa + 3d123bc commit ae8d670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function toAuthenticationInfo(authenticationJson :AuthenticationJSON, aut
return {
credentialId: authenticationJson.id,
userId: authenticationJson.response.userHandle,
coutner: authenticator.signCount,
counter: authenticator.signCount,
userVerified: authenticator.flags.userVerified
}
}
Expand All @@ -119,4 +119,4 @@ export function toAuthenticationInfo(authenticationJson :AuthenticationJSON, aut
export function parseAuthentication(authenticationJson :AuthenticationJSON) :AuthenticationInfo {
const authenticator = parseAuthenticator(authenticationJson.response.authenticatorData);
return toAuthenticationInfo(authenticationJson, authenticator);
}
}
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export interface AuthenticationInfo {
credentialId: Base64URLString
userId?: Base64URLString
userVerified: boolean
coutner: number
counter: number
}


Expand Down

0 comments on commit ae8d670

Please sign in to comment.