MinecraftToken

fun MinecraftToken(type: String, value: String, user: String, duration: Int)

Parameters

type

The authorization scheme to be used with the token, such as "Bearer" or "Basic".

value

The value of the token itself. Typically, this is in JSON Web Token (JWT) format.

user

The UUID of the Minecraft account that the token is intended for. This UUID is associated with the account itself, not the player that belongs to the account.

duration

The amount of time, in seconds, that the token lasts for.