-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- New version with breaking changes. - CAPTCHA and Risk Provider support. - Risk Provider implementations include Google reCAPTCHA v2 invisible, Google reCAPTCHA V3, and PingOne Protect. - Removed the old reCAPTCHA V2 Invisible implementation.
- Loading branch information
1 parent
7a9d633
commit 3b2802e
Showing
25 changed files
with
377 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import RiskUtils from "../utils/riskUtils"; | ||
|
||
module.exports = function (options) { | ||
if (!options.data.root.showCaptcha) | ||
return; | ||
console.log("rendering captcha") | ||
const type = options.data.root.captchaProviderType; | ||
const attributes = options.data.root.captchaAttributes; | ||
const store = options.data.root.store; | ||
const riskUtils = new RiskUtils(type, attributes, store); | ||
const uiElement = riskUtils.renderUIElement(); | ||
if (uiElement) | ||
return uiElement; | ||
// fallback, nothing to return | ||
}; |
Oops, something went wrong.