tradly 1.2.0 → 1.2.2
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.
|
@@ -29,6 +29,7 @@ export var TradlyConfig = {
|
|
|
29
29
|
currency: "",
|
|
30
30
|
language: "",
|
|
31
31
|
barrow_access_key: "",
|
|
32
|
+
pkKey: "",
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
class NetworkManager {
|
|
@@ -59,6 +60,10 @@ class NetworkManager {
|
|
|
59
60
|
|
|
60
61
|
// Auto-get PK key from auth if not provided and auth is available
|
|
61
62
|
let pkKey = APPCONSTANT.TOKEN;
|
|
63
|
+
if (config?.pkKey) {
|
|
64
|
+
console.log(config);
|
|
65
|
+
pkKey = config?.pkKey;
|
|
66
|
+
}
|
|
62
67
|
if (!pkKey && !APPCONSTANT.IS_SKIP_PK_BY_DOMAIN) {
|
|
63
68
|
const authPKKey = getPKKeyFromAuth();
|
|
64
69
|
if (authPKKey) {
|