Skip to content

Commit e55c0b6

Browse files
committed
Revert "Added onCreateUser callback"
This reverts commit a9fc9d2.
1 parent a9fc9d2 commit e55c0b6

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"webpack-node-externals": "^1.5.4"
6565
},
6666
"dependencies": {
67-
"@accounts/common": "next",
67+
"@accounts/common": "^0.0.6",
6868
"immutable": "^3.8.1",
6969
"jwt-decode": "^2.1.0",
7070
"lodash": "^4.16.4",

packages/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"author": "Tim Mikeladze",
4444
"license": "MIT",
4545
"dependencies": {
46-
"@accounts/common": "next",
46+
"@accounts/common": "^0.0.6",
4747
"bcryptjs": "^2.4.0",
4848
"crypto": "^0.0.3",
4949
"emailjs": "^1.0.8",

packages/server/src/AccountsServer.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22

3-
import { isString, isPlainObject, isFunction, find, includes, get } from 'lodash';
3+
import { isString, isPlainObject, find, includes, get } from 'lodash';
44
import jwt from 'jsonwebtoken';
55
import {
66
AccountsError,
@@ -181,11 +181,6 @@ export class AccountsServer {
181181
profile: user.profile,
182182
});
183183

184-
const { onUserCreated } = this.options();
185-
if (isFunction(onUserCreated)) {
186-
await onUserCreated(userId);
187-
}
188-
189184
return userId;
190185
}
191186

0 commit comments

Comments
 (0)