Kongregate Developers

Getting the player's Kongregate user id

You can use the getUserId() function to retrieve the unique user id of the current player. It will return 0 if the user is not signed in.

Please note that to securely authenticate a player, you should use the server-side (JSON) authentication API.

var userId:Number = kongregate.services.getUserId();