Authentication

Integration Guide

Asynchronous authenticate Game Client with your proven credentials:

The GameClient class provides you a way to create a client for your game to connect to our system with many functions such as game authentication, creating user playtime, updating the status and the data of user playtime, v.v.

Step 1. Call the initAsync() function asynchronous to start to initialize your game:

client.initAsync()
.then(() => {
    // Write your code here.
})
.catch((error) => {
    // Handle error.
})

Step 2. If our system authenticates your game client, you can start using our GameClient API functions. Example:

const citizenCode = client.user.citizen.getCitizenCode();

Last updated