We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df699bc commit 916f926Copy full SHA for 916f926
packages/cozy-konnector-libs/src/libs/solveCaptcha.js
@@ -50,7 +50,7 @@ const DEFAULT_TIMEOUT = connectorStartTime + 3 * m // 3 minutes by default to le
50
* ```
51
* @alias module:solveCaptcha
52
*/
53
-const solveCaptcha = async (params = {}) => {
+const solveCaptcha = async (userParams = {}) => {
54
const defaultParams = {
55
type: 'recaptcha',
56
timeout: DEFAULT_TIMEOUT,
@@ -60,7 +60,7 @@ const solveCaptcha = async (params = {}) => {
60
let solution
61
let resultAttribute = 'gRecaptchaResponse'
62
63
- params = { ...defaultParams, ...params }
+ const params = { ...defaultParams, ...userParams }
64
65
const secrets = JSON.parse(process.env.COZY_PARAMETERS || '{}').secret
66
0 commit comments