rewrite authentication flow

This commit is contained in:
2026-08-12 15:42:41 +03:00
parent 70c64a9251
commit d6a0d058ed
9 changed files with 109 additions and 20 deletions
@@ -1,6 +1,6 @@
package ru.shadowsparky.vbox.shared.domain
interface HeathCheck {
interface HealthCheck {
suspend fun check()
companion object {
@@ -45,3 +45,11 @@ sealed interface RemoteEvent {
@SerialName("OnChatUpdate")
data class OnChatUpdate(override val userId: Long) : RemoteEvent
}
@Serializable
@SerialName("AuthRequest")
data class AuthRequest(val token: String)
@Serializable
@SerialName("AuthResponse")
data class AuthResponse(val ok: Boolean, val error: String? = null)