squarefi-bff-api-module 1.24.6 → 1.24.8
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.
|
@@ -36,8 +36,8 @@ function refreshTokens() {
|
|
|
36
36
|
return refreshResponse;
|
|
37
37
|
}
|
|
38
38
|
if ((0, sdk_react_1.isTMA)()) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
sdk_react_1.initData.restore();
|
|
40
|
+
console.log('initData.restore()', sdk_react_1.initData.restore);
|
|
41
41
|
const tg_id = (_a = sdk_react_1.initData.user()) === null || _a === void 0 ? void 0 : _a.id;
|
|
42
42
|
const hash = sdk_react_1.initData.hash();
|
|
43
43
|
const init_data_raw = sdk_react_1.initData.raw();
|
package/package.json
CHANGED
|
@@ -32,8 +32,8 @@ export async function refreshTokens(): Promise<ITokens> {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
if (isTMA()) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
initData.restore();
|
|
36
|
+
console.log('initData.restore()', initData.restore);
|
|
37
37
|
|
|
38
38
|
const tg_id = initData.user()?.id;
|
|
39
39
|
const hash = initData.hash();
|