问题描述
我正在尝试在我正在开发的网站上实现苹果登录。我已经按照所有步骤将开发者门户与 firebase 同步,现在我必须使用 React Web 和 Firebase UI 在前端 WebApp 上实现登录按钮:Login plugin for React
唯一的问题是按钮没有显示,我已按照此处的说明进行操作:
Implement Apple Login with Firebase
所以我有一个 Firebase.js 类,其中包含一个提供所有提供者的方法:
/**
* Return a configuration object with all the authentication method supported
* @author Giulio Serra
* @returns {Object} containing all the authentication method supported
*/
getAuthenticationProviders() {
const appleProvider = new firebase.auth.OAuthProvider("apple.com");
appleProvider.setCustomParameters({
locale: 'it' // localize auth screen
});
return {
signInFlow: "popup",signInoptions: [
firebase.auth.FacebookAuthProvider.PROVIDER_ID,appleProvider
],callbacks: {},};
}
这里是登录组件:
<div className="row justify-content-center">
<StyledFirebaseAuth
uiConfig={services}
firebaseAuth={Firebase.prototype.getAuth()}
/>
</div>
结果如下:
如您所见,只有 Facebook 且没有 Apple 登录,我做错了什么?谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)