@accounts/client
Advanced tools
Comparing version
@@ -11,2 +11,3 @@ import { Map } from 'immutable'; | ||
constructor(options: AccountsClientConfiguration, transport: TransportInterface); | ||
config(): Promise<void>; | ||
getState(): Map<string, any>; | ||
@@ -13,0 +14,0 @@ getStorageData(keyName: string): Promise<string>; |
@@ -86,2 +86,17 @@ "use strict"; | ||
} | ||
AccountsClient.prototype.config = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4, this.loadTokensFromStorage()]; | ||
case 1: | ||
_a.sent(); | ||
return [4, this.loadOriginalTokensFromStorage()]; | ||
case 2: | ||
_a.sent(); | ||
return [2]; | ||
} | ||
}); | ||
}); | ||
}; | ||
AccountsClient.prototype.getState = function () { | ||
@@ -88,0 +103,0 @@ var state = this.store.getState(); |
{ | ||
"name": "@accounts/client", | ||
"version": "0.1.0-alpha.04203cca", | ||
"version": "0.1.0-alpha.29d07868", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -62,3 +62,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/common": "^0.1.0-alpha.04203cca", | ||
"@accounts/common": "^0.1.0", | ||
"crypto-js": "^3.1.9-1", | ||
@@ -65,0 +65,0 @@ "immutable": "^3.8.1", |
Sorry, the diff of this file is not supported yet
62304
1.17%1028
1.58%- Removed
Updated