package com.radiola.domain.repository

import com.radiola.domain.model.User
import kotlinx.coroutines.flow.Flow

interface AuthRepository {
    suspend fun requestMagicLink(email: String): Result<Unit>
    suspend fun verifyMagicLink(email: String, code: String): Result<User>
    fun isLoggedIn(): Flow<Boolean>
    fun currentUser(): Flow<User?>
    suspend fun logout()
}
