To use sign in users anonymously, you must first enable the
Anonymous sign in method in your firebase project.
Go to Firebase console and check your
Sign-in providers under the Sign-in Methods tab in the Authentication
service and make sure Anonymous is enabled.
Visit Firebase Auth REST API docs
for more details.