-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrecaptcha2.html
More file actions
26 lines (24 loc) · 765 Bytes
/
recaptcha2.html
File metadata and controls
26 lines (24 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head>
<title>reCAPTCHA v3 Triggered by Native</title>
<script src="https://www.google.com/recaptcha/api.js?render=6LecQh8rAAAAAChj34bWdqwN52gPlQGKqQMJ4iN1"></script>
<script>
function runRecaptcha() {
grecaptcha.ready(function () {
grecaptcha.execute('6LecQh8rAAAAAChj34bWdqwN52gPlQGKqQMJ4iN1', { action: 'LOGIN' }).then(function (token) {
console.log(token);
try {
Android.onTokenReceived(token);
}
catch(e) {
}
});
});
}
</script>
</head>
<body>
<p>Waiting for native trigger...</p>
</body>
</html>