This PR renames the @simplewebauthn/typesAuthenticatorDevice type to WebAuthnCredential. AuthenticatorDevice.credentialID and AuthenticatorDevice.credentialPublicKey have been shortened to WebAuthnCredential.id and WebAuthnCredential.publicKey respectively.
@simplewebauthn/server's verifyRegistrationResponse() has been updated to return a new credential value of type WebAuthnCredential. The old credentialID, credentialPublicKey, and counter values have been replaced by credential.id, credential.publicKey, and credential.counter respectively.
The authenticator argument in @simplewebauthn/server's verifyAuthenticationResponse() has also been renamed to credential of type WebAuthnCredential.
Fixes #558.
Breaking Changes - verifyRegistrationResponse()
Update code that stores credentialID, credentialPublicKey, and counter out of verifyRegistrationResponse() to store credential.id, credential.publicKey, and credential.counter instead:
This PR renames the @simplewebauthn/types
AuthenticatorDevice
type toWebAuthnCredential
.AuthenticatorDevice.credentialID
andAuthenticatorDevice.credentialPublicKey
have been shortened toWebAuthnCredential.id
andWebAuthnCredential.publicKey
respectively.@simplewebauthn/server's
verifyRegistrationResponse()
has been updated to return a newcredential
value of typeWebAuthnCredential
. The oldcredentialID
,credentialPublicKey
, andcounter
values have been replaced bycredential.id
,credential.publicKey
, andcredential.counter
respectively.The
authenticator
argument in @simplewebauthn/server'sverifyAuthenticationResponse()
has also been renamed tocredential
of typeWebAuthnCredential
.Fixes #558.
Breaking Changes - verifyRegistrationResponse()
Update code that stores
credentialID
,credentialPublicKey
, andcounter
out ofverifyRegistrationResponse()
to storecredential.id
,credential.publicKey
, andcredential.counter
instead:Before:
After:
Breaking Changes - verifyAuthenticationResponse()
Update calls to
verifyAuthenticationResponse()
to match the newcredential
argument that replaces theauthenticator
argument:Before:
After: