GridTokenResponse
A grid-scoped token: an app token narrowed to one grid. Hand it to code that should act inside the grid and nowhere else (a JS grid program, a mod host adapter, an agent).
type GridTokenResponse {
token: String!
gameTokenId: BigInt!
appId: BigInt!
gridId: BigInt!
lowChunk: ChunkCoordinates!
highChunk: ChunkCoordinates!
expiresAt: DateTime!
}
Fields
GridTokenResponse.token ● String! non-null scalar
Bearer token. It admits only the root fields the grid-token policy lists, each confined to the grid, and it is refused by the binary realtime relay (realtime runs over GraphQL).
GridTokenResponse.gameTokenId ● BigInt! non-null scalar
The underlying game_token id, as a BigInt.
GridTokenResponse.appId ● BigInt! non-null scalar
The app it is confined to.
GridTokenResponse.gridId ● BigInt! non-null scalar
The grid it is confined to.
GridTokenResponse.lowChunk ● ChunkCoordinates! non-null object
Low corner of the grid box, copied at mint.
GridTokenResponse.highChunk ● ChunkCoordinates! non-null object
High corner of the grid box, copied at mint.
GridTokenResponse.expiresAt ● DateTime! non-null scalar
When the token stops working.
Returned By
mintGridToken mutation