credentialWithToken static method

AGCAuthCredential credentialWithToken(
  1. String playerSign,
  2. String imageUrl,
  3. int playerLevel,
  4. String playerId,
  5. String displayName,
  6. String signTs, {
  7. bool autoCreateUser = true,
})

Creates a sign-in credential. By default, an account is automatically created.

Implementation

static AGCAuthCredential credentialWithToken(
    String playerSign,
    String imageUrl,
    int playerLevel,
    String playerId,
    String displayName,
    String signTs,
    {bool autoCreateUser = true}) {
  return HuaweiGameAuthCredential(
      autoCreateUser,
      playerSign,
      imageUrl,
      playerLevel,
      playerId,
      displayName,
      signTs,
      AuthProviderType.huaweiGame);
}