main #2

Merged
student-15031 merged 7 commits from student-28725/NTO-2025-Android-TeamTask:main into main 2025-11-29 16:46:27 +00:00
Showing only changes of commit 00162984a9 - Show all commits

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
} }
} }
} }