How Authentication works
When a returning or new player logs into your app, Unity Authentication generates the following tokens and ID:
PlayerID(a random alphanumeric string of 28 characters) - used to identify returning and new players on different devices and external providers.
- A session token - used to re-authenticate the user after the session expires.
- An authentication token - contains the
PlayerID, and is used to prevent anyone from overriding the identification.
The tokens and the
PlayerID allow Unity products and Unity games to capture player information during authentication. They enable:
- A means to identify a player and store player game data (for example, saving game state and recording in-app purchases)
- Consistent game experiences to the player (for example, points for leader boards and suggested in-app purchases)
- Insight about the player’s game behavior across multiple devices
- Multiplayer features on various platforms