File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ function mockCustom() {
351
351
function mockFacebookAuthenticator ( id , token ) {
352
352
const facebook = { } ;
353
353
facebook . validateAuthData = function ( authData ) {
354
+ console . log ( { authData, id} ) ;
354
355
if ( authData . id === id && authData . access_token . startsWith ( token ) ) {
355
356
return Promise . resolve ( ) ;
356
357
} else {
Original file line number Diff line number Diff line change @@ -165,12 +165,12 @@ function loadAuthAdapter(provider, authOptions) {
165
165
'policy'
166
166
] ;
167
167
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
+ } ) ;
174
174
const appIds = providerOptions ? providerOptions . appIds : undefined ;
175
175
176
176
// Try the configuration methods
You can’t perform that action at this time.
0 commit comments