summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src')
-rw-r--r--packages/server/src/authentication/verifyAuthenticationResponse.ts6
-rw-r--r--packages/server/src/registration/verifyRegistrationResponse.ts4
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/server/src/authentication/verifyAuthenticationResponse.ts b/packages/server/src/authentication/verifyAuthenticationResponse.ts
index 1506d8d..81b2878 100644
--- a/packages/server/src/authentication/verifyAuthenticationResponse.ts
+++ b/packages/server/src/authentication/verifyAuthenticationResponse.ts
@@ -1,5 +1,5 @@
import {
- AuthenticationCredentialJSON,
+ AuthenticationResponseJSON,
AuthenticatorDevice,
CredentialDeviceType,
UserVerificationRequirement,
@@ -15,7 +15,7 @@ import { matchExpectedRPID } from '../helpers/matchExpectedRPID';
import { isoUint8Array, isoBase64URL } from '../helpers/iso';
export type VerifyAuthenticationResponseOpts = {
- credential: AuthenticationCredentialJSON;
+ credential: AuthenticationResponseJSON;
expectedChallenge: string | ((challenge: string) => boolean);
expectedOrigin: string | string[];
expectedRPID: string | string[];
@@ -33,7 +33,7 @@ export type VerifyAuthenticationResponseOpts = {
*
* @param credential Authenticator credential returned by browser's `startAssertion()`
* @param expectedChallenge The base64url-encoded `options.challenge` returned by
- * `generateAssertionOptions()`
+ * `generateAuthenticationOptions()`
* @param expectedOrigin Website URL (or array of URLs) that the registration should have occurred on
* @param expectedRPID RP ID (or array of IDs) that was specified in the registration options
* @param authenticator An internal {@link AuthenticatorDevice} matching the credential's ID
diff --git a/packages/server/src/registration/verifyRegistrationResponse.ts b/packages/server/src/registration/verifyRegistrationResponse.ts
index 37debfa..665ef6b 100644
--- a/packages/server/src/registration/verifyRegistrationResponse.ts
+++ b/packages/server/src/registration/verifyRegistrationResponse.ts
@@ -1,5 +1,5 @@
import {
- RegistrationCredentialJSON,
+ RegistrationResponseJSON,
COSEAlgorithmIdentifier,
CredentialDeviceType,
} from '@simplewebauthn/typescript-types';
@@ -30,7 +30,7 @@ import { verifyAttestationAndroidKey } from './verifications/verifyAttestationAn
import { verifyAttestationApple } from './verifications/verifyAttestationApple';
export type VerifyRegistrationResponseOpts = {
- credential: RegistrationCredentialJSON;
+ credential: RegistrationResponseJSON;
expectedChallenge: string | ((challenge: string) => boolean);
expectedOrigin: string | string[];
expectedRPID?: string | string[];