@sunggang/ui-lib 0.3.40 → 0.3.42
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/index.esm2.js +4 -4
- package/package.json +1 -1
package/index.esm2.js
CHANGED
|
@@ -78695,7 +78695,7 @@ var LiffProvider = function(param) {
|
|
|
78695
78695
|
}();
|
|
78696
78696
|
var accountLogin = function() {
|
|
78697
78697
|
var _ref = _async_to_generator(function(username, password) {
|
|
78698
|
-
var response,
|
|
78698
|
+
var response, token, tokenType, finalToken, err;
|
|
78699
78699
|
return _ts_generator(this, function(_state) {
|
|
78700
78700
|
switch(_state.label){
|
|
78701
78701
|
case 0:
|
|
@@ -78720,12 +78720,12 @@ var LiffProvider = function(param) {
|
|
|
78720
78720
|
];
|
|
78721
78721
|
case 1:
|
|
78722
78722
|
response = _state.sent();
|
|
78723
|
-
if (!(response === null || response === void 0 ? void 0 : response.status)) return [
|
|
78723
|
+
if (!((response === null || response === void 0 ? void 0 : response.status) || (response === null || response === void 0 ? void 0 : response.access_token))) return [
|
|
78724
78724
|
3,
|
|
78725
78725
|
3
|
|
78726
78726
|
];
|
|
78727
|
-
token = response === null || response === void 0 ? void 0 :
|
|
78728
|
-
tokenType = response === null || response === void 0 ? void 0 :
|
|
78727
|
+
token = response === null || response === void 0 ? void 0 : response.access_token;
|
|
78728
|
+
tokenType = response === null || response === void 0 ? void 0 : response.token_type;
|
|
78729
78729
|
finalToken = "".concat(tokenType, " ").concat(token);
|
|
78730
78730
|
setAccessToken(finalToken);
|
|
78731
78731
|
setLoginType("account");
|