I have implemented a login system for my game through Firestore which stores the user email address for authentication, and am working on submitting the user name and high score to create a database. My question, is if a user is logged in, is their user name and high score linked to their account (the one they create to login to the game)? Does the database recognize that the user name created was from that logged in email address?
I need to build a way so that each user name and high score is linked to their login email address, but when displaying their score on the leaderboard, only the user name and high score is shown (keeping their email address private).
If this is not possible, is there a way to include a user name as part of the account registration process, (which is currently on email and password required) which links the player, but is not required for authentication when logging in?
Is there a semi-simple solution to this?
Thanks in advance.