Skip to content

Commit 1706e2d

Browse files
Make default value undefined so there are no breaking changes.
1 parent e0c3d98 commit 1706e2d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/service.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ const optionsDefault = {
3737
reuseResetToken: false,
3838
identifyUserProps: ['email'],
3939
sanitizeUserForClient,
40-
passParams: async (params) => {
41-
let {provider: _, query: __, ...passedParams} = params;
42-
return passedParams;
43-
}
40+
passParams: undefined,
4441
};
4542

4643
module.exports = authenticationLocalManagement;
@@ -59,7 +56,7 @@ function authLocalMgntMethods (options) {
5956
async create (data, params) {
6057
debug(`create called. action=${data.action}`);
6158

62-
let passedParams = await options.passParams(params);
59+
let passedParams = options.passParams && await options.passParams(params);
6360

6461
switch (data.action) {
6562
case 'checkUnique':

0 commit comments

Comments
 (0)