Ask a Question

Ask a Question
Back to All

What's the best practice for login via email?

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:

  1. Beamable does nothing until players click to sign up or sign in.
  2. Once players click to sign up and provide their email and password, Beamable creates an account.
  3. 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.
  4. Once a logged-in player clicks sign out, Beamable returns to the initial state
  5. 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.