refactor(core): MP-25 Move User and AuthToken to core-domain

This commit is contained in:
2025-12-06 22:48:02 +01:00
parent afd109efcc
commit a8d99b5168
9 changed files with 68 additions and 24 deletions
@@ -0,0 +1,10 @@
package at.mocode.frontend.core.domain.models
import kotlinx.serialization.Serializable
@Serializable
data class AuthToken(
val accessToken: String,
val tokenType: String = "Bearer",
val expiresAtEpochMillis: Long? = null
)
@@ -0,0 +1,11 @@
package at.mocode.frontend.core.domain.models
import kotlinx.serialization.Serializable
@Serializable
data class User(
val id: String,
val username: String,
val displayName: String? = null,
val roles: List<String> = emptyList()
)