diff --git a/modules/services/repositories/src/main/java/au/com/shiftyjelly/pocketcasts/repositories/sync/SyncManagerImpl.kt b/modules/services/repositories/src/main/java/au/com/shiftyjelly/pocketcasts/repositories/sync/SyncManagerImpl.kt index 195f80b71c9..8f91e50df84 100644 --- a/modules/services/repositories/src/main/java/au/com/shiftyjelly/pocketcasts/repositories/sync/SyncManagerImpl.kt +++ b/modules/services/repositories/src/main/java/au/com/shiftyjelly/pocketcasts/repositories/sync/SyncManagerImpl.kt @@ -124,12 +124,12 @@ class SyncManagerImpl @Inject constructor( private suspend fun fetchAccessToken(account: Account): AccessToken? { val refreshToken = syncAccountManager.getRefreshToken(account) ?: return null return try { - Timber.d("Refreshing the access token") + val signInType = syncAccountManager.getSignInType(account) + LogBuffer.i(LogBuffer.TAG_BACKGROUND_TASKS, "Fetching the access token, SignInType: $signInType") val tokenResponse = downloadTokens( email = account.name, refreshToken = refreshToken, - syncServerManager = syncServerManager, - signInType = syncAccountManager.getSignInType(account), + signInType = signInType, signInSource = SignInSource.AccountAuthenticator ) @@ -419,9 +419,8 @@ class SyncManagerImpl @Inject constructor( private suspend fun downloadTokens( email: String, refreshToken: RefreshToken, - syncServerManager: SyncServerManager, signInSource: SignInSource, - signInType: AccountConstants.SignInType + signInType: AccountConstants.SignInType, ): LoginTokenResponse { val properties = mapOf(TRACKS_KEY_SIGN_IN_SOURCE to signInSource.analyticsValue) try {