Compare commits

...

3 Commits

Author SHA1 Message Date
00162984a9 merge upstream 2025-11-29 15:03:42 +00:00
bc7e14ab06 AuthRepository.kt fix 2025-11-29 16:27:55 +03:00
b98c7f410f add auth interface logical 2025-11-29 13:03:50 +00:00

View File

@@ -7,9 +7,8 @@ object AuthRepository {
private var codeCache: String? = null private var codeCache: String? = null
suspend fun checkAndSave(text: String): Result<Boolean> { suspend fun checkAndSave(text: String): Result<Boolean> {
return NetworkDataSource.checkAuth(text).mapCatching { success -> return NetworkDataSource.checkAuth(text).onSuccess { success ->
if (success) codeCache = text if (success) codeCache = text
success
} }
} }
} }