Skip to content

Commit eeae236

Browse files
committed
chore(build): added missing callback result and return value from loginWithPassword
1 parent bba7145 commit eeae236

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/client/src/AccountsClient.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,14 @@ export class AccountsClient {
204204
this.store.dispatch(setUser(res.user));
205205
this.options.onSignedInHook();
206206
if (callback && isFunction(callback)) {
207-
callback();
207+
callback(null, res);
208208
}
209+
210+
return res;
209211
} catch (err) {
210212
this.store.dispatch(loggingIn(false));
211213
if (callback && isFunction(callback)) {
212-
callback(err);
214+
callback(err, null);
213215
}
214216
throw new AccountsError(err.message);
215217
}

0 commit comments

Comments
 (0)