rewrite authentication flow
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
package ru.shadowsparky.vbox.shared.domain
|
||||
|
||||
interface HeathCheck {
|
||||
interface HealthCheck {
|
||||
suspend fun check()
|
||||
|
||||
companion object {
|
||||
+8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user