Ask a Question
What's the best practice for login via email?
8 months ago by teddy
Hey, I am learning Beamable, and the first thing I need to figure out is authentication.
For my game, players have to log in via email, and after I learned the identity section in the documentation, I couldn't find the best way to do this task.
Beamable will automatically create a user for each player, generating many temporary accounts, which will cause data pollution.
What I need:
- Beamable does nothing until players click to sign up or sign in.
- Once players click to sign up and provide their email and password, Beamable creates an account.
- Once players click to sign in and provide their email and password, Beamable logs in and, if he can pass the authentication, gets access to this user.
- Once a logged-in player clicks sign out, Beamable returns to the initial state
- No temporary accounts will be created in all situations.
You can consider the login progress of this game to be like that of a traditional mmo-rpg, such as WOW.