文档

支持

Authentication

Open Unity Dashboard

Authentication

Authentication 工作原理

Understand how Unity Authentication generates player identifiers and tokens to enable secure player identification.
阅读时间1 分钟最后更新于 1 个月前

回归玩家或新玩家登录您的应用时,Unity Authentication 将生成以下令牌和 ID:
  • PlayerID
    (28 个字符的随机字母数字字符串):用于识别不同设备和外部提供商的回归玩家和新玩家。
  • 会话令牌:用于在会话过期后重新验证用户身份。
  • 身份验证令牌:包含
    PlayerID
    ,用于防止覆盖标识。
Unity 产品和 Unity 游戏可使用令牌和
PlayerID
在玩家进行身份验证时获取玩家信息。它们可实现以下功能:
  • 识别玩家和存储玩家游戏数据(例如,保存游戏状态、记录应用内购)。
  • 确保玩家游戏体验始终如一(例如,排行榜积分和应用内购建议)。
  • 提供有关玩家在多个设备上游戏行为的见解。
  • 在不同平台实现多人联网功能。

Authentication 工作原理 • Authentication • Unity Docs