forked from Olympic/NTO-2025-Android-TeamTask
merge upstream
This commit is contained in:
@@ -7,9 +7,8 @@ object AuthRepository {
|
||||
private var codeCache: String? = null
|
||||
|
||||
suspend fun checkAndSave(text: String): Result<Boolean> {
|
||||
return NetworkDataSource.checkAuth(text).mapCatching { success ->
|
||||
return NetworkDataSource.checkAuth(text).onSuccess { success ->
|
||||
if (success) codeCache = text
|
||||
success
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user