Skip to main content

MinecraftChallenge

A one-time server id for signInWithMinecraft. The Minecraft client joins it through Mojang’s session service (as for any server) as the account signed in to the game, then signs in with it before expiresAt.

type MinecraftChallenge {
serverId: String!
expiresAt: DateTime!
}

Fields​

MinecraftChallenge.serverId ● String! non-null scalar​

40 hex characters. Pass it unchanged as the serverId of Mojang’s session join, then to signInWithMinecraft. Good once, for one app, for two minutes.

MinecraftChallenge.expiresAt ● DateTime! non-null scalar​

When the server id stops being accepted.

Returned By​

minecraftChallenge mutation