Session #
Your game client with an identity provider can be used by both players and game administrators to connect to your game and social services. This connection creates a user session.
Session tokens #
Your game client provides the Pragma session tokens during requests to Pragma Engine. The engine then uses these tokens to identify the player, route requests, and verify that the request came from a trusted source.
Session tokens are a type of JSON Web Token, JWT. The session tokens are signed by a RSA key pair that is configured in the TokenConfig
object. Pragma uses two types of session tokens.
- Pragma game tokens (
pragmaGameToken
): ThepragmaGameToken
can be used to connect to a game server with matchinggameShardId
. - Pragma social tokens (
pragmaSocialToken
): ThepragmaSocialToken
can be used to connect to a social server.
Session timeout #
You can set the duration for which a player’s session remains active using the tokenConfig
. An active session token can be used for future logins within this specified time frame.