diff --git a/app/src/main/java/com/owncloud/android/authentication/AuthenticatorAsyncTask.kt b/app/src/main/java/com/owncloud/android/authentication/AuthenticatorAsyncTask.kt
index e2f88f793296..0fc9025dd3fa 100644
--- a/app/src/main/java/com/owncloud/android/authentication/AuthenticatorAsyncTask.kt
+++ b/app/src/main/java/com/owncloud/android/authentication/AuthenticatorAsyncTask.kt
@@ -17,105 +17,97 @@
* along with this program. If not, see .
*
*/
-package com.owncloud.android.authentication;
-
-import android.app.Activity;
-import android.content.Context;
-import android.net.Uri;
-import android.os.AsyncTask;
-
-import com.nextcloud.common.NextcloudClient;
-import com.owncloud.android.lib.common.OwnCloudClient;
-import com.owncloud.android.lib.common.OwnCloudClientFactory;
-import com.owncloud.android.lib.common.OwnCloudCredentials;
-import com.owncloud.android.lib.common.UserInfo;
-import com.owncloud.android.lib.common.network.RedirectionPath;
-import com.owncloud.android.lib.common.operations.RemoteOperationResult;
-import com.owncloud.android.lib.resources.files.ExistenceCheckRemoteOperation;
-import com.owncloud.android.lib.resources.users.GetUserInfoRemoteOperation;
-
-import java.lang.ref.WeakReference;
-
-import static com.owncloud.android.datamodel.OCFile.ROOT_PATH;
-
+@file:Suppress("DEPRECATION")
+
+package com.owncloud.android.authentication
+
+import android.app.Activity
+import android.content.Context
+import android.net.Uri
+import android.os.AsyncTask
+import com.owncloud.android.datamodel.OCFile
+import com.owncloud.android.lib.common.OwnCloudClientFactory
+import com.owncloud.android.lib.common.OwnCloudCredentials
+import com.owncloud.android.lib.common.UserInfo
+import com.owncloud.android.lib.common.operations.RemoteOperationResult
+import com.owncloud.android.lib.resources.files.ExistenceCheckRemoteOperation
+import com.owncloud.android.lib.resources.users.GetUserInfoRemoteOperation
+import java.lang.ref.WeakReference
/**
* Async Task to verify the credentials of a user
*/
-public class AuthenticatorAsyncTask extends AsyncTask