Skip to content

Commit 7e48fcb

Browse files
Update description for checkCaptchaParams
1 parent 6c8626d commit 7e48fcb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/utils/checkCaptchaParams.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ const getRequiredFildsArr = (method: string):Array<string> => {
108108
}
109109

110110
/**
111+
* ### Captcha Required Parameters Check.
112+
*
113+
* Checking required captcha parameters before sending.
114+
* This function checks for required fields in the provided captcha parameters.
115+
* Throws an error if the specified method is not supported or if required fields are missing.
116+
*
117+
* Note: The `checkCaptchaParams()` function should be called after `renameParams()`, if function `renameParams()` is used.
118+
*
111119
* @param { Object } params Captcha parameters that need to be checked.
112120
* @returns true | false | Error
113121
* @example

0 commit comments

Comments
 (0)