C2SLoginJWTPacket

data class C2SLoginJWTPacket(val token: String, val allowMessages: Boolean) : AxochatPacket.C2S

To log in using a json web token, the client has to send a LoginJWT packet. it will send Success if the login was successful.

Parameters

token

can be retrieved by sending RequestJWT on an already authenticated connection.

allowMessages

If allow_messages is true, other clients may send private messages to this client.

Constructors

Link copied to clipboard
constructor(token: String, allowMessages: Boolean)

Properties

Link copied to clipboard
@SerializedName(value = "allow_messages")
val allowMessages: Boolean
Link copied to clipboard
@SerializedName(value = "token")
val token: String