AuthenticatedUserDto

data class AuthenticatedUserDto(val token: String, val user: UserDto, val validated: Boolean)

Data transfer object (DTO) representing an authenticated user received from the remote API.

Constructors

Link copied to clipboard
constructor(token: String, user: UserDto, validated: Boolean)

Properties

Link copied to clipboard

The authentication token associated with the user.

Link copied to clipboard

The detailed information about the authenticated user.

Link copied to clipboard

Indicates whether the user has been validated.

Functions

Link copied to clipboard

Converts the AuthenticatedUserDto to a UserRoomEntity for local database storage. This function might be useful when a user registers with no discovered planets yet.