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 e0c3d98 commit 1706e2dCopy full SHA for 1706e2d
src/service.js
@@ -37,10 +37,7 @@ const optionsDefault = {
37
reuseResetToken: false,
38
identifyUserProps: ['email'],
39
sanitizeUserForClient,
40
- passParams: async (params) => {
41
- let {provider: _, query: __, ...passedParams} = params;
42
- return passedParams;
43
- }
+ passParams: undefined,
44
};
45
46
module.exports = authenticationLocalManagement;
@@ -59,7 +56,7 @@ function authLocalMgntMethods (options) {
59
56
async create (data, params) {
60
57
debug(`create called. action=${data.action}`);
61
58
62
- let passedParams = await options.passParams(params);
+ let passedParams = options.passParams && await options.passParams(params);
63
64
switch (data.action) {
65
case 'checkUnique':
0 commit comments