@dynamic-labs/sdk-react-core 3.0.0-alpha.30 → 3.0.0-alpha.31
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/CHANGELOG.md
CHANGED
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.31",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"react-i18next": "13.5.0",
|
|
18
18
|
"yup": "0.32.11",
|
|
19
19
|
"react-international-phone": "4.2.5",
|
|
20
|
-
"@dynamic-labs/iconic": "3.0.0-alpha.
|
|
21
|
-
"@dynamic-labs/logger": "3.0.0-alpha.
|
|
22
|
-
"@dynamic-labs/message-transport": "3.0.0-alpha.
|
|
23
|
-
"@dynamic-labs/multi-wallet": "3.0.0-alpha.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "3.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/store": "3.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/wallet-book": "3.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.
|
|
20
|
+
"@dynamic-labs/iconic": "3.0.0-alpha.31",
|
|
21
|
+
"@dynamic-labs/logger": "3.0.0-alpha.31",
|
|
22
|
+
"@dynamic-labs/message-transport": "3.0.0-alpha.31",
|
|
23
|
+
"@dynamic-labs/multi-wallet": "3.0.0-alpha.31",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "3.0.0-alpha.31",
|
|
25
|
+
"@dynamic-labs/store": "3.0.0-alpha.31",
|
|
26
|
+
"@dynamic-labs/types": "3.0.0-alpha.31",
|
|
27
|
+
"@dynamic-labs/utils": "3.0.0-alpha.31",
|
|
28
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.31",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.31",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -90,14 +90,14 @@ require('../../../context/ConnectWithOtpContext/constants.cjs');
|
|
|
90
90
|
require('../../../context/ReinitializeContext/ReinitializeContextProvider.cjs');
|
|
91
91
|
|
|
92
92
|
const isCookieEnabled = () => {
|
|
93
|
-
var _a, _b, _c;
|
|
94
|
-
const securitySettings = (_a = projectSettingsActions.getProjectSettings()) === null || _a === void 0 ? void 0 : _a.settings.security;
|
|
93
|
+
var _a, _b, _c, _d;
|
|
94
|
+
const securitySettings = (_b = (_a = projectSettingsActions.getProjectSettings()) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.security;
|
|
95
95
|
if (!securitySettings)
|
|
96
96
|
return false;
|
|
97
97
|
// client uses Dynamic cookies
|
|
98
|
-
const dynamicCookiesEnabled = (((
|
|
98
|
+
const dynamicCookiesEnabled = (((_c = securitySettings.auth) === null || _c === void 0 ? void 0 : _c.storage) || []).includes(sdkApiCore.AuthStorageEnum.Cookie);
|
|
99
99
|
// BYO JWT client puts their non-Dynamic JWT in a cookie
|
|
100
|
-
const byoJwtCookieEnabled = Boolean((
|
|
100
|
+
const byoJwtCookieEnabled = Boolean((_d = securitySettings.externalAuth) === null || _d === void 0 ? void 0 : _d.cookieName);
|
|
101
101
|
// should return true for both of these scenarios
|
|
102
102
|
// because we also need to do `credentials: true` in api.ts when
|
|
103
103
|
// a byo jwt client sets their named cookie for their jwt and
|
|
@@ -86,14 +86,14 @@ import '../../../context/ConnectWithOtpContext/constants.js';
|
|
|
86
86
|
import '../../../context/ReinitializeContext/ReinitializeContextProvider.js';
|
|
87
87
|
|
|
88
88
|
const isCookieEnabled = () => {
|
|
89
|
-
var _a, _b, _c;
|
|
90
|
-
const securitySettings = (_a = getProjectSettings()) === null || _a === void 0 ? void 0 : _a.settings.security;
|
|
89
|
+
var _a, _b, _c, _d;
|
|
90
|
+
const securitySettings = (_b = (_a = getProjectSettings()) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.security;
|
|
91
91
|
if (!securitySettings)
|
|
92
92
|
return false;
|
|
93
93
|
// client uses Dynamic cookies
|
|
94
|
-
const dynamicCookiesEnabled = (((
|
|
94
|
+
const dynamicCookiesEnabled = (((_c = securitySettings.auth) === null || _c === void 0 ? void 0 : _c.storage) || []).includes(AuthStorageEnum.Cookie);
|
|
95
95
|
// BYO JWT client puts their non-Dynamic JWT in a cookie
|
|
96
|
-
const byoJwtCookieEnabled = Boolean((
|
|
96
|
+
const byoJwtCookieEnabled = Boolean((_d = securitySettings.externalAuth) === null || _d === void 0 ? void 0 : _d.cookieName);
|
|
97
97
|
// should return true for both of these scenarios
|
|
98
98
|
// because we also need to do `credentials: true` in api.ts when
|
|
99
99
|
// a byo jwt client sets their named cookie for their jwt and
|