Authentication v1 manages the process from Hive SDK initialization to sign-in.

Once the game is running, you must make the user login to Hive server regardless of whether the user is a member or not. When make the user login to Hive server, you must specify the login type. Hive provides four kinds of login type as follows:

  • GUEST
  • ACCOUNT
  • SELECT
  • AUTO

Hive tells you what type of login you should use. The Hive client issues a DID, which is the device’s unique number, during the initialization process, and informs the user what type of login is available based on the log record of the corresponding DID.

Identifiers on Hive

Hive uses the following identifiers to verify user and device.

  • Device identifier: DID
  • User identifier
    • VID: A unique user ID in games. User gets different VID for each game after installation
    • UID: A unique user ID on Hive Platform. Guest is unavailable to get UID

What is DID?

DID is a unique device number provided by Hive Platform. If a specific device starts a game on Hive, Hive Client records the device data and issues DID. It is a key matched with advertising identifier such as IDFA for iOS and Advertising ID for Android. If the advertising identifier changed when game is reinstalled after deletion, DID may change.

What is Login Type?

Once the game is running, you must make the user login to Hive server regardless of whether the user is a member or not. When make the user login to Hive server, you must specify the login type..

You can check login type in two ways as follows:

  • Check the login type with the initialization result of Hive Client: Hive Client verifies user device on Initialization phase, and with the value of login type,Hive tells you what type of login you should use. The value of login type is delivered with loginType field of AuthInitResult object through callback function of initialization method.
  • Search the login type by calling Hive API: After initializing Hive Client, you can check the login type with Auth API, a part of Hive API. For more information, see Getting Login Type.