This file contains hidden or 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
| function (user, context, callback) { | |
| // this rule requires the following configuration values: | |
| // CAPTCHA_SECRET: a 32 bytes string that will be the shared secret between | |
| // the rule and the webtask | |
| // AUTH0_DOMAIN: your auth0 domain (e.g. account.auth0.com) | |
| // CAPTCHA_REDIRECT: the URL for the webtask that will show and process CAPTCHA | |
| // Put a specific client ID if you dont want CAPTCHA for every client | |
| // if (context.clientID !== '[your client id]') |