Defining User Management

User Management in Forge provides a way to link the users in your game to Forge, enabling persistence and state management. This connection allows you to associate users with spaces and their item inventories, ensuring all data remains tied to the user.

User Fields

FieldDescription
idThe unique identifier for the user.
externalIdOptional. An identifier linking the user to an external system or your game.
createdAtThe timestamp when the user was created.
updatedAtThe timestamp when the user was last updated.
teamIdThe unique identifier of the team (game) the user belongs to.

Purpose of Managing Users

  • User Linkage: Create a persistent connection between your game’s user and Forge.
  • State Management: Associate spaces and item inventories with the user for seamless gameplay data management.

A user in Forge represents the same player in your game, ensuring their state and inventory are always synchronized.


Example Use Case

  • Inventory Management: Store item inventories in spaces tied to the user for persistent access across sessions.

By linking your users with Forge, you can ensure persistence, manage their state effectively, and provide a seamless experience for players.