-
Notifications
You must be signed in to change notification settings - Fork 1
KongregatePackage
Location: snipe/packages/kongregate/
This package includes support for users logging into the Kongregate network.
Client should send "kongregate_game_auth_token" field in "user.login" request. If it is not received, "user.login" response will return "noKongregateAuthToken" error code. All Kongregate users should have "KG" SNS network type.
In case when Kongregate login fails (for example, wrong authentication token or wrong API key), the client will receive a "packages/kongregate.login" message with "loginFailure" error code. Client will not be forcefully disconnected from the server.
You can include this package into the game server with:
override function initModulesGame()
{
loadModules([
snipe.packages.kongregate.GameModule,
]);
}
Game server configuration variables:
- "sns.KGapiKey" - Kongregate project API key.
The package will use Kongregate server-side JSON API to login the client into Kongregate using the authentication token and Kongregate user ID.