I have a Firebase user with a photoURL value set.
The Firebase docs say the photoURL property has a string | null value.
Now I want to remove the photoURL, so I thought I could set it to null using the Web v9 modular SDK.
But this does not work:
updateProfile(auth.currentUser, { photoURL: null });
However this does work:
updateProfile(auth.currentUser, { photoURL: '' });
If I use an empty string Firebase will convert it to null afterwards. But I can't directly set it to null.
Is this a feature or a bug?