Skip to content

Commit 07541c4

Browse files
committed
wip
1 parent ec49e5f commit 07541c4

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

spec/helper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ function mockCustom() {
351351
function mockFacebookAuthenticator(id, token) {
352352
const facebook = {};
353353
facebook.validateAuthData = function (authData) {
354+
console.log({authData, id});
354355
if (authData.id === id && authData.access_token.startsWith(token)) {
355356
return Promise.resolve();
356357
} else {

src/Adapters/Auth/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ function loadAuthAdapter(provider, authOptions) {
165165
'policy'
166166
];
167167
const defaultAuthAdapter = new AuthAdapter();
168-
// keys.forEach(key => {
169-
// const existing = adapter?.[key];
170-
// if (existing && typeof existing === 'function' && existing.toString() === defaultAuthAdapter[key].toString()) {
171-
// adapter[key] = null;
172-
// }
173-
// });
168+
keys.forEach(key => {
169+
const existing = adapter?.[key];
170+
if (existing && typeof existing === 'function' && existing.toString() === defaultAuthAdapter[key].toString()) {
171+
adapter[key] = null;
172+
}
173+
});
174174
const appIds = providerOptions ? providerOptions.appIds : undefined;
175175

176176
// Try the configuration methods

0 commit comments

Comments
 (0)