Response

@Serializable
data class Response(val token: String, val user: User)

Represents the response from a successful login API call.

Constructors

Link copied to clipboard
constructor(token: String, user: User)

Properties

Link copied to clipboard
@SerialName(value = "token")
val token: String

The JWT token for authenticating subsequent requests.

Link copied to clipboard
@SerialName(value = "user")
val user: User

The details of the logged-in user.