summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/server/src/authentication/verifyAuthenticationResponse.test.ts4
-rw-r--r--packages/server/src/registration/verifyRegistrationResponse.test.ts1
2 files changed, 1 insertions, 4 deletions
diff --git a/packages/server/src/authentication/verifyAuthenticationResponse.test.ts b/packages/server/src/authentication/verifyAuthenticationResponse.test.ts
index c996991..5a760e4 100644
--- a/packages/server/src/authentication/verifyAuthenticationResponse.test.ts
+++ b/packages/server/src/authentication/verifyAuthenticationResponse.test.ts
@@ -227,7 +227,6 @@ test('should support multiple possible origins', async () => {
expect(verification.verified).toEqual(true);
expect(verification.authenticationInfo?.origin).toEqual(assertionOrigin);
- expect(verification.authenticationInfo?.rpID).toEqual('dev.dontneeda.pw');
});
test('should throw an error if origin not in list of expected origins', async () => {
@@ -253,6 +252,7 @@ test('should support multiple possible RP IDs', async () => {
});
expect(verification.verified).toEqual(true);
+ expect(verification.authenticationInfo?.rpID).toEqual('dev.dontneeda.pw');
});
test('should throw an error if RP ID not in list of possible RP IDs', async () => {
@@ -376,8 +376,6 @@ test('should return credential backup info', async () => {
expect(verification.authenticationInfo?.credentialDeviceType).toEqual('singleDevice');
expect(verification.authenticationInfo?.credentialBackedUp).toEqual(false);
- expect(verification.authenticationInfo?.origin).toEqual(assertionOrigin);
- expect(verification.authenticationInfo?.rpID).toEqual('dev.dontneeda.pw');
});
/**
diff --git a/packages/server/src/registration/verifyRegistrationResponse.test.ts b/packages/server/src/registration/verifyRegistrationResponse.test.ts
index e6acd2a..7f89857 100644
--- a/packages/server/src/registration/verifyRegistrationResponse.test.ts
+++ b/packages/server/src/registration/verifyRegistrationResponse.test.ts
@@ -520,7 +520,6 @@ test('should not set RPID in registrationInfo when not expected', async () => {
});
expect(verification.verified).toBe(true);
- expect(verification.registrationInfo?.origin).toEqual('https://dev.dontneeda.pw');
expect(verification.registrationInfo?.rpID).toBeUndefined();
});