Skip to content

Commit 6e434e9

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Adapters/Auth/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function authDataValidator(provider, adapter, appIds, options) {
137137

138138
function loadAuthAdapter(provider, authOptions) {
139139
// providers are auth providers implemented by default
140-
let defaultAdapter = providers[provider] || {};
140+
let defaultAdapter = providers[provider];
141141
// authOptions can contain complete custom auth adapters or
142142
// a default auth adapter like Facebook
143143
const providerOptions = authOptions[provider];
@@ -154,7 +154,7 @@ function loadAuthAdapter(provider, authOptions) {
154154
return;
155155
}
156156

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

0 commit comments

Comments
 (0)