I'm trying to implement Firebase authentication. With the provided UI,
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.
I'm trying to implement Firebase authentication. With the provided UI,
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.
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.