Comparing version 2.0.6 to 2.0.7
@@ -265,3 +265,5 @@ 'use strict'; | ||
return this.waitUserAction(); | ||
} else if (!this._code) { | ||
} else if (!this._code && this.getToken() && this.isRequestExpired()) { | ||
return this.refreshToken(); | ||
} else if (!this.code) { | ||
return Promise.resolve(false); | ||
@@ -268,0 +270,0 @@ } |
{ | ||
"name": "amocrm-js", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "JS Library for AmoCRM", | ||
@@ -5,0 +5,0 @@ "main": "dist/AmoCRM.js", |
@@ -220,3 +220,6 @@ 'use strict'; | ||
} | ||
else if ( !this._code ) { | ||
else if ( !this._code && this.getToken() && this.isRequestExpired()) { | ||
return this.refreshToken(); | ||
} | ||
else if ( !this.code ) { | ||
return Promise.resolve( false ); | ||
@@ -223,0 +226,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201224
4138