【发布时间】:2017-10-11 18:41:18
【问题描述】:
来自https://firebase.google.com/docs/auth/web/phone-auth:
如果 signInWithPhoneNumber 导致错误,请重置 reCAPTCHA,以便 用户可以再试一次:
grecaptcha.reset(window.recaptchaWidgetId); // Or, if you haven't stored the widget ID: window.recaptchaVerifier.render().then(function(widgetId) { grecaptcha.reset(widgetId); }
但grecaptcha 从未定义。我必须从某个地方导入它吗?
【问题讨论】:
标签: javascript firebase firebase-authentication recaptcha