@globalfishingwatch/api-client
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -134,2 +134,5 @@ /*! ***************************************************************************** | ||
} | ||
GFWAPI.prototype.getBaseUrl = function () { | ||
return this.baseUrl; | ||
}; | ||
GFWAPI.prototype.getLoginUrl = function (callbackUrl, client) { | ||
@@ -271,2 +274,4 @@ if (client === void 0) { client = 'gfw'; } | ||
} | ||
localStorage.removeItem(this.storageKeys.token); | ||
localStorage.removeItem(this.storageKeys.refreshToken); | ||
e_3.refreshError = true; | ||
@@ -273,0 +278,0 @@ throw e_3; |
@@ -140,2 +140,5 @@ (function (global, factory) { | ||
} | ||
GFWAPI.prototype.getBaseUrl = function () { | ||
return this.baseUrl; | ||
}; | ||
GFWAPI.prototype.getLoginUrl = function (callbackUrl, client) { | ||
@@ -277,2 +280,4 @@ if (client === void 0) { client = 'gfw'; } | ||
} | ||
localStorage.removeItem(this.storageKeys.token); | ||
localStorage.removeItem(this.storageKeys.refreshToken); | ||
e_3.refreshError = true; | ||
@@ -279,0 +284,0 @@ throw e_3; |
@@ -84,2 +84,5 @@ "use strict"; | ||
} | ||
GFWAPI.prototype.getBaseUrl = function () { | ||
return this.baseUrl; | ||
}; | ||
GFWAPI.prototype.getLoginUrl = function (callbackUrl, client) { | ||
@@ -221,2 +224,4 @@ if (client === void 0) { client = 'gfw'; } | ||
} | ||
localStorage.removeItem(this.storageKeys.token); | ||
localStorage.removeItem(this.storageKeys.refreshToken); | ||
e_3.refreshError = true; | ||
@@ -223,0 +228,0 @@ throw e_3; |
@@ -39,2 +39,3 @@ import { UserData } from './types'; | ||
}); | ||
getBaseUrl(): string; | ||
getLoginUrl(callbackUrl: string, client?: string): string; | ||
@@ -41,0 +42,0 @@ getConfig(): { |
{ | ||
"name": "@globalfishingwatch/api-client", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "js library to help with the login/logout and resources fetch of the GFW API", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
175478
1610