@accounts/client
Advanced tools
Comparing version 0.30.0 to 0.31.0
@@ -216,11 +216,14 @@ "use strict"; | ||
tokens = _a.sent(); | ||
if (!tokens) return [3 /*break*/, 4]; | ||
return [4 /*yield*/, this.setTokens(tokens)]; | ||
if (!tokens) return [3 /*break*/, 5]; | ||
return [4 /*yield*/, this.logout()]; | ||
case 2: | ||
_a.sent(); | ||
return [4 /*yield*/, this.clearTokens(true)]; | ||
return [4 /*yield*/, this.setTokens(tokens)]; | ||
case 3: | ||
_a.sent(); | ||
_a.label = 4; | ||
case 4: return [2 /*return*/]; | ||
return [4 /*yield*/, this.clearTokens(true)]; | ||
case 4: | ||
_a.sent(); | ||
_a.label = 5; | ||
case 5: return [2 /*return*/]; | ||
} | ||
@@ -227,0 +230,0 @@ }); |
{ | ||
"name": "@accounts/client", | ||
"version": "0.30.0", | ||
"version": "0.31.0", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -51,3 +51,2 @@ "main": "lib/index.js", | ||
"@types/jest": "25.2.3", | ||
"@types/jwt-decode": "2.2.1", | ||
"@types/node": "14.0.14", | ||
@@ -61,7 +60,7 @@ "jest": "26.0.1", | ||
"dependencies": { | ||
"@accounts/types": "^0.30.0", | ||
"jwt-decode": "2.2.0", | ||
"@accounts/types": "^0.31.0", | ||
"jwt-decode": "3.1.2", | ||
"tslib": "2.0.0" | ||
}, | ||
"gitHead": "a883d3b90c481e9c73a7655ef2aadac092fc6b0e" | ||
"gitHead": "8938531dd59f40e14e029c8785433acb455bd58c" | ||
} |
@@ -177,2 +177,3 @@ import { LoginResult, Tokens, ImpersonationResult, User } from '@accounts/types'; | ||
if (tokens) { | ||
await this.logout(); | ||
await this.setTokens(tokens); | ||
@@ -179,0 +180,0 @@ await this.clearTokens(true); |
Sorry, the diff of this file is not supported yet
35976
7
697
+ Added@accounts/types@0.31.1(transitive)
+ Addedjwt-decode@3.1.2(transitive)
- Removed@accounts/types@0.30.0(transitive)
- Removedjwt-decode@2.2.0(transitive)
Updated@accounts/types@^0.31.0
Updatedjwt-decode@3.1.2