6

I'm trying to implement Firebase authentication. With the provided UI,

enter image description here

I can't figure out what method is called when the Cancel button is clicked. It don't seem to be documented, https://github.com/firebase/firebaseui-web.

Pratheep
  • 936
  • 1
  • 7
  • 17

1 Answers1

0

Apparently there isn't a cancelled callback.

There is, however--as also pointed out by bojeil-google --, an undocumented uiChanged callback that could be hacked into capturing a cancelling state.

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

That did it for me.

Lucero del Alba
  • 470
  • 1
  • 5
  • 7