I’m having problems creating a sign up / log in system in my game, and it would be great if someone can help me with this please.
What I’m trying to achieve:
1- Player sign up with a form [name, email, password]
2- Create account with email and password in Firebase
3- Create a document (player’s profile) in Firestore with auto generated ID, which includes several fields
4- Send a verification link to the player’s email which would start with “Hello Name”
5- Player logs in with a form [email, password]
6- Check if email is verified and connect with account
7- Get the fields in the player’s document (profile) that was created in Firestore
8- Keep account connected even after closing the game, and only disconnect if the user clicks on log out
Questions / problems I have:
- Setting the display name is not working and the verification email starts with just “Hello”
- How do I link the account to the document ID that was created?
- How to keep the the user connected to the account even after closing the game
I’ve attached a simpler version screenshot of my code with only the basic conditions and events.
I would appreciate anyone’s help who knows better, and let me know what I’m doing wrong and missing.