TokenResponseModel

@Serializable
data class TokenResponseModel(val userId: Uuid, val username: String, val accessToken: String, val expiresIn: Long) : Principal

A model representing a token response and Principal to be sent to the client.

Constructors

Link copied to clipboard
constructor(userId: Uuid, username: String, accessToken: String, expiresIn: Long)

Properties

Link copied to clipboard
@SerialName(value = "access_token")
val accessToken: String
Link copied to clipboard
@SerialName(value = "expires_in")
val expiresIn: Long
Link copied to clipboard
@SerialName(value = "user_id")
open override val userId: Uuid

The unique identifier for the user.

Link copied to clipboard
open override val username: String

The username of the user.