flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

🐛 [firebase_auth] Cannot set tenantId back to null after setting it to something else

Open Rexios80 opened this issue 2 years ago • 3 comments

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:

  1. Set tenantId
  2. Do some auth method to see that the tenantId is set
  3. Attempt to set tenantId to null
  4. 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

Rexios80 avatar Jan 18 '22 16:01 Rexios80

/cc @salakar

darshankawar avatar Jan 19 '22 09:01 darshankawar

Blocked on https://github.com/firebase/firebase-android-sdk/issues/3398

Salakar avatar Feb 24 '22 16:02 Salakar

I am facing this issue as well. Any solutions to this or workarounds?

stee1ix avatar Mar 20 '24 10:03 stee1ix