Documentation

​
​

Development

User Acquisition

Monetization

Industry

Authentication

Unity SDK

Admin API

Client API

Open Unity Dashboard

Authentication

LiveOps
​
​
Authentication
  • Overview
  • Get started
  • Concepts
    • How Authentication works
    • Approaches to authentication
    • Sessions and cached players
    • Manage profiles
    • Manage player names
    • Manage linked external identities
    • Player prefs
    • Delete accounts
    • Authentication native SDK
    • Digital Services Act Notifications
  • Tutorials
  • Reference
  • Privacy and consent
  1. Unity Authentication

How Unity Authentication works

Understand how Unity Authentication generates player identifiers and tokens to enable secure player identification.
Read time 1 minute
Last updated 9 months ago

When a player signs in to your app, Unity Authentication generates the following tokens and ID:
  • A
    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 access token: used to identify and authenticate the player to other Unity services.
You can learn more about these tokens and how to manage them under Cached players and session management.
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 leaderboards and suggested in-app purchases).
  • Insight about the player’s game behavior across multiple devices.
  • Multiplayer features on various platforms.
Signing in can be done via anonymous sign-in, or using external identity providers. Please refer to the page on identity providers for more details.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.


    Report a problem with this page