firebase app-check react native 使用 ReCaptcha V3 作为 CustomProvider

问题描述 投票:0回答:0

由于 ReCaptchaV3Provider 无法在本机反应中工作,我正在尝试将其用作自定义提供程序,例如

const appCheckProvider = new CustomProvider({
   getToken: () =>
    // Logic to get the token from recaptcha using the public key
});
export const appCheck = initializeAppCheck(app, {
  provider: appCheckProvider,
  isTokenAutoRefreshEnabled: true,
});

我目前没有使用 react-native-firebase,因为我需要 ExpoGo 在我的设备上进行开发,但我找不到实现该逻辑的方法。有帮助吗?

expo react-native-firebase recaptcha-v3 firebase-app-check
© www.soinside.com 2019 - 2024. All rights reserved.