Skip to content

Commit 404c160

Browse files
committed
refactor
1 parent 07541c4 commit 404c160

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

spec/helper.js

-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ function mockCustom() {
351351
function mockFacebookAuthenticator(id, token) {
352352
const facebook = {};
353353
facebook.validateAuthData = function (authData) {
354-
console.log({authData, id});
355354
if (authData.id === id && authData.access_token.startsWith(token)) {
356355
return Promise.resolve();
357356
} else {

src/Adapters/Auth/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function loadAuthAdapter(provider, authOptions) {
154154
return;
155155
}
156156

157-
const adapter = defaultAdapter || {};
157+
const adapter = defaultAdapter instanceof AuthAdapter ? defaultAdapter : Object.assign({}, defaultAdapter);
158158
const keys = [
159159
'validateAuthData',
160160
'validateAppId',

0 commit comments

Comments
 (0)