File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -351,7 +351,6 @@ function mockCustom() {
351
351
function mockFacebookAuthenticator ( id , token ) {
352
352
const facebook = { } ;
353
353
facebook . validateAuthData = function ( authData ) {
354
- console . log ( { authData, id} ) ;
355
354
if ( authData . id === id && authData . access_token . startsWith ( token ) ) {
356
355
return Promise . resolve ( ) ;
357
356
} else {
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ function loadAuthAdapter(provider, authOptions) {
154
154
return ;
155
155
}
156
156
157
- const adapter = defaultAdapter || { } ;
157
+ const adapter = defaultAdapter instanceof AuthAdapter ? defaultAdapter : Object . assign ( { } , defaultAdapter ) ;
158
158
const keys = [
159
159
'validateAuthData' ,
160
160
'validateAppId' ,
You can’t perform that action at this time.
0 commit comments