MinecraftToken

data class MinecraftToken(type: String, value: String, user: String, duration: Int)

A token that can be used to access Minecraft services on a player's behalf.

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.

Constructors

Link copied to clipboard
fun MinecraftToken(type: String, value: String, user: String, duration: Int)

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val duration: Int
Link copied to clipboard
val type: String
Link copied to clipboard
val user: String
Link copied to clipboard
val value: String