diff --git a/components/auth/auth.js b/components/auth/auth.js
index <HASH>..<HASH> 100644
--- a/components/auth/auth.js
+++ b/components/auth/auth.js
@@ -569,12 +569,12 @@ export default class Auth {
    * if user is logged in or log her in otherwise
    */
   async login() {
-    await this._checkBackendsStatusesIfEnabled();
     if (this.config.windowLogin && this._authDialogService !== undefined) {
       this._showAuthDialog();
       return;
     }
 
+    await this._checkBackendsStatusesIfEnabled();
     try {
       const accessToken = await this._backgroundFlow.authorize();
       const user = await this.getUser(accessToken);
RG-<I> RG-<I> check backend statuses only if logging in without window login enabled: otherwise it causes blocked popup