【问题标题】:FirebaseUI cancel button click callbackFirebaseUI 取消按钮点击回调
【发布时间】:2019-01-01 09:00:50
【问题描述】:

我正在尝试实施 Firebase 身份验证。使用提供的 UI,

我不知道单击“取消”按钮时调用了什么方法。似乎没有记录,https://github.com/firebase/firebaseui-web。

【问题讨论】:

    标签: firebase firebaseui


    【解决方案1】:

    Apparently 没有 cancelled 回调。

    然而--as also pointed out by bojeil-google --,一个未记录的uiChanged 回调可以被黑客入侵以捕获取消状态。

    const uiConfig = {
      callbacks: {
        uiChanged: function (fromPageId, toPageId) {
          console.log('uiChanged from:', fromPageId)
          console.log('uiChanged to:', toPageId)
        },
        uiShown: function() {
          console.log('ui is shown')
        },
      }
    

    这对我有用。

    【讨论】:

      猜你喜欢
      • 2017-09-10
      • 1970-01-01
      • 1970-01-01
      • 2012-12-29
      • 2013-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-14
      相关资源
      最近更新 更多