@evlop/commons 1.0.98 → 1.0.99
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.ts"],"names":[],"mappings":"AAAA,wBAA8B,YAAY,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.ts"],"names":[],"mappings":"AAAA,wBAA8B,YAAY,oBAKzC"}
|
@@ -11,7 +11,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
function getUserToken() {
|
13
13
|
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
|
14
|
+
try {
|
15
|
+
return localStorage.getItem('token');
|
16
|
+
}
|
17
|
+
catch (e) {
|
18
|
+
}
|
15
19
|
});
|
16
20
|
}
|
17
21
|
exports.default = getUserToken;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,SAA8B,YAAY;;QACtC,OAAO,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,SAA8B,YAAY;;QACtC,IAAG;YACC,OAAO,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SACxC;QAAC,OAAM,CAAC,EAAC;SACT;IACL,CAAC;CAAA;AALD,+BAKC"}
|