Yeah, you can. If you are storing user’s name in the database(firestore), you can modify the request to traverse the user’s name field using the
uid in the firestore. The
uid is attached to login credentials (such as email and password).
It implies, not only for username, but any field stored in the database.