refactor(core): MP-25 Move User and AuthToken to core-domain
This commit is contained in:
+10
@@ -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
|
||||
)
|
||||
+11
@@ -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()
|
||||
)
|
||||
Reference in New Issue
Block a user