@sunggang/ui-lib 0.2.66 → 0.2.68
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 +7 -8
- package/package.json +1 -1
package/index.esm2.js
CHANGED
|
@@ -58954,6 +58954,7 @@ var LiffProvider = function(param) {
|
|
|
58954
58954
|
case 2:
|
|
58955
58955
|
response = _state.sent();
|
|
58956
58956
|
resData = response;
|
|
58957
|
+
console.log("login response", response);
|
|
58957
58958
|
if (!(resData === null || resData === void 0 ? void 0 : (_resData_data = resData.data) === null || _resData_data === void 0 ? void 0 : _resData_data.access_token.startsWith("Bearer "))) {
|
|
58958
58959
|
resData.data.access_token = "Bearer ".concat(resData === null || resData === void 0 ? void 0 : (_resData_data2 = resData.data) === null || _resData_data2 === void 0 ? void 0 : _resData_data2.access_token);
|
|
58959
58960
|
}
|
|
@@ -59137,14 +59138,12 @@ var LiffProvider = function(param) {
|
|
|
59137
59138
|
}();
|
|
59138
59139
|
checkAndInitialize();
|
|
59139
59140
|
}, []);
|
|
59140
|
-
useEffect(
|
|
59141
|
-
|
|
59142
|
-
|
|
59143
|
-
|
|
59144
|
-
|
|
59145
|
-
}, [
|
|
59146
|
-
localStorageKey
|
|
59147
|
-
]);
|
|
59141
|
+
// useEffect(() => {
|
|
59142
|
+
// if (typeof window !== 'undefined') {
|
|
59143
|
+
// const storedLoginData = window.localStorage.getItem(localStorageKey);
|
|
59144
|
+
// setLoginData(storedLoginData ? JSON.parse(storedLoginData) : null);
|
|
59145
|
+
// }
|
|
59146
|
+
// }, [localStorageKey]);
|
|
59148
59147
|
var contextValue = useMemo$1(function() {
|
|
59149
59148
|
return {
|
|
59150
59149
|
liffObject: liffObject,
|