Skip to content

Commit ec49e5f

Browse files
committed
Update index.js
1 parent 6e434e9 commit ec49e5f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Adapters/Auth/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function loadAuthAdapter(provider, authOptions) {
154154
return;
155155
}
156156

157-
const adapter = defaultAdapter ?? Object.assign({});
157+
const adapter = defaultAdapter || {};
158158
const keys = [
159159
'validateAuthData',
160160
'validateAppId',
@@ -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)