TokenService

class TokenService(secret: ByteArray, tokenTtlMillis: Long, clock: Clock = SystemClock)

Issues signed proxy tokens for handshake metadata.

Constructors

Link copied to clipboard
constructor(secret: ByteArray, tokenTtlMillis: Long, clock: Clock = SystemClock)

Functions

Link copied to clipboard
fun issueToken(playerId: String, targetServerId: String, clientCertB64: String? = null): String

Issues a signed proxy token for the given playerId and targetServerId.