You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
firebase
.appCheck()
.activate(
new firebase.appCheck.ReCaptchaV3Provider(
process.env.REACT_APP_RECAPTCHA_KEY
),
true
);
ts error: Argument of type 'ReCaptchaV3Provider' is not assignable to parameter of type 'AppCheckProvider'.
Property 'getToken' is missing in type 'ReCaptchaV3Provider' but required in type 'AppCheckProvider'.
BTW the new version does not reflect the docs specified
Docs previous to version 8.9.0
firebase.initializeApp({
// Your firebase configuration object
});
const appCheck = firebase.appCheck();
// Pass your reCAPTCHA v3 site key (public key) to activate(). Make sure this
// key is the counterpart to the secret key you set in the Firebase console.
appCheck.activate(
'abcdefghijklmnopqrstuvwxy-1234567890abcd',
// Optional argument. If true, the SDK automatically refreshes App Check
// tokens as needed.
true);
The text was updated successfully, but these errors were encountered:
There is a typings error in the main index.d.ts file. Fix is pending in #5261.
Both the provider argument and the string sitekey argument should be accepted (when the SDK is working correctly). Until the fix is released, you may be able to get around this temporarily with a //@ts-ignore.
Version 8.9.0
BTW the new version does not reflect the docs specified
Docs previous to version 8.9.0
The text was updated successfully, but these errors were encountered: