@eiannone/tesla-api 1.15.3 → 1.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TeslaApi.js +1 -1
- package/package.json +1 -1
package/TeslaApi.js
CHANGED
|
@@ -194,7 +194,7 @@ class TeslaApi {
|
|
|
194
194
|
catch(error) {
|
|
195
195
|
if (retry < 3) {
|
|
196
196
|
await new Promise(resolve => setTimeout(resolve, 500));
|
|
197
|
-
return this.refreshToken(refresh_token
|
|
197
|
+
return this.refreshToken(refresh_token, retry + 1);
|
|
198
198
|
}
|
|
199
199
|
if (error instanceof Error) error.message += " - Unable to refresh Token";
|
|
200
200
|
throw error;
|