Get the username of the current user
getUsername()
Getting the player's Kongregate username
You can use the getUsername function to retrieve the username of the current player. It will begin with Guest if the user is not signed in.
| Name | Type | Description |
|---|---|---|
| Return value | String | The username of the current user. |
var username = kongregate.services.getUsername();
