Skip to content

Commit f17555a

Browse files
committed
fix: address review feedback
1 parent 0c7290c commit f17555a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

spec/vulnerabilities.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3075,6 +3075,7 @@ describe('(GHSA-fjxm-vhvc-gcmj) LiveQuery Operator Type Confusion', () => {
30753075
challengeData: { anonymous: { token: '123456' } },
30763076
}),
30773077
}).catch(e => e);
3078+
expect(res.status).toBeGreaterThanOrEqual(400);
30783079
expect(res.status).toBeLessThan(500);
30793080
});
30803081

@@ -3092,6 +3093,7 @@ describe('(GHSA-fjxm-vhvc-gcmj) LiveQuery Operator Type Confusion', () => {
30923093
challengeData: { anonymous: { token: '123456' } },
30933094
}),
30943095
}).catch(e => e);
3096+
expect(res.status).toBeGreaterThanOrEqual(400);
30953097
expect(res.status).toBeLessThan(500);
30963098
});
30973099
});

src/Auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ const checkIfUserHasProvidedConfiguredProvidersForLogin = (
526526
const savedUserProviders = Object.keys(userAuthData)
527527
.map(provider => {
528528
const validator = config.authDataManager.getValidatorForProvider(provider);
529-
if (!validator) {
529+
if (!validator || !validator.adapter) {
530530
return null;
531531
}
532532
return { name: provider, adapter: validator.adapter };

0 commit comments

Comments
 (0)