We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bba7145 commit eeae236Copy full SHA for eeae236
packages/client/src/AccountsClient.js
@@ -204,12 +204,14 @@ export class AccountsClient {
204
this.store.dispatch(setUser(res.user));
205
this.options.onSignedInHook();
206
if (callback && isFunction(callback)) {
207
- callback();
+ callback(null, res);
208
}
209
+
210
+ return res;
211
} catch (err) {
212
this.store.dispatch(loggingIn(false));
213
- callback(err);
214
+ callback(err, null);
215
216
throw new AccountsError(err.message);
217
0 commit comments