Integration
User Management
Link your game’s users with Forge for persistence and state management
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
Field | Description |
---|---|
id | The unique identifier for the user. |
externalId | Optional. An identifier linking the user to an external system or your game. |
createdAt | The timestamp when the user was created. |
updatedAt | The timestamp when the user was last updated. |
teamId | The 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.