flutterfire
flutterfire copied to clipboard
🐛 [firebase_auth] Cannot set tenantId back to null after setting it to something else
Bug report
The platform code does not allow setting the tenantId to null. Even though it defaults to null, setting it back to null after setting it to something else does not work. (There are null checks in the platform code. It's pretty obvious why it isn't working.)
Steps to reproduce
Steps to reproduce the behavior:
- Set tenantId
- Do some auth method to see that the tenantId is set
- Attempt to set tenantId to null
- Do some auth method to see that the tenantId is actually not null, but the value set in step 1
Expected behavior
Setting the tenantId to null actually sets it to null in the platform code
Sample project
Working on a PR
/cc @salakar
Blocked on https://github.com/firebase/firebase-android-sdk/issues/3398
I am facing this issue as well. Any solutions to this or workarounds?