firebase / firebase/firebase-js-sdk

RecaptchaVerifier expired-callback never triggers

Open
#7,631 4 comments 0 reactions 0 assignees View on GitHub
api: auth bug
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### Operating System

macOS

### Browser Version

Safari 16.5.2

### Firebase SDK Version

10.1.0

### Firebase SDK Product:

Auth

### Describe your project's tooling

index.html with source tag.

### Describe the problem

The [RecaptchaParameters](https://firebase.google.com/docs/reference/js/auth.recaptchaparameters.md#recaptchaparameters_interface) is said to accept all parameters except `sitekey`. However, the `expired-callback` never triggers.

### Steps and code to reproduce issue

somehere in the html

`

`

```
var applicationVerifier = new RecaptchaVerifier(auth, 'recaptcha-container',
{
"callback": response => {//triggers
console.log("success");
}, "expired-callback": () => {//never triggers, even if recaptcha expires after 2 minutes.
console.log("expired");
}, "error-callback": () => {//triggers
console.log("error");
}});

await applicationVerifier.render();//or call verify, doesn't matter.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.