Fix recursive calls to getAuthToken

This commit is contained in:
Kirill Kamakin
2022-04-05 19:09:37 +05:00
parent b3f7527884
commit d40793104f
7 changed files with 52 additions and 37 deletions

View File

@@ -23,7 +23,7 @@ class AuthDataSourceImpl @Inject constructor(
override suspend fun authenticate(username: String, password: String): String {
Timber.v("authenticate() called with: username = $username, password = $password")
val authService = authServiceFactory.provideService()
val authService = authServiceFactory.provideService(needAuth = false)
val response = sendRequest(authService, username, password)
val accessToken = parseToken(response)
Timber.v("authenticate() returned: $accessToken")