@diviswap/sdk 1.7.7 → 1.7.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.
- package/dist/cli/index.js +53 -9
- package/dist/cli/templates/nextjs-app/provider.tsx.hbs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/{wallet-BEGvzNtB.d.mts → wallet-CNiPxV5L.d.mts} +1 -1
- package/dist/{wallet-BEGvzNtB.d.ts → wallet-CNiPxV5L.d.ts} +1 -1
- package/package.json +1 -1
- package/src/cli/templates/nextjs-app/provider.tsx.hbs +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1634,7 +1634,7 @@ var PartnerAuth = class {
|
|
|
1634
1634
|
*/
|
|
1635
1635
|
generateJWT(options = {}) {
|
|
1636
1636
|
const {
|
|
1637
|
-
audience = "api.
|
|
1637
|
+
audience = "api.liberex.sv",
|
|
1638
1638
|
expiresIn = 300,
|
|
1639
1639
|
// 5 minutes max
|
|
1640
1640
|
scopes = []
|
|
@@ -1733,11 +1733,11 @@ var UnifiedApiClient = class _UnifiedApiClient {
|
|
|
1733
1733
|
static getDefaultApiUrl(environment) {
|
|
1734
1734
|
switch (environment) {
|
|
1735
1735
|
case "production":
|
|
1736
|
-
return "https://api.
|
|
1736
|
+
return "https://api.liberex.sv";
|
|
1737
1737
|
case "sandbox":
|
|
1738
|
-
return "https://dev-api.
|
|
1738
|
+
return "https://dev-api.liberex.sv";
|
|
1739
1739
|
default:
|
|
1740
|
-
return "https://dev-api.
|
|
1740
|
+
return "https://dev-api.liberex.sv";
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
/**
|
|
@@ -1861,7 +1861,7 @@ var UnifiedApiClient = class _UnifiedApiClient {
|
|
|
1861
1861
|
const queryString = urlParts.length > 1 ? urlParts[1] : "";
|
|
1862
1862
|
if (this.config.authMethod === "jwt") {
|
|
1863
1863
|
const jwt = this.partnerAuth.generateJWT({
|
|
1864
|
-
audience: "api.
|
|
1864
|
+
audience: "api.liberex.sv",
|
|
1865
1865
|
expiresIn: 300
|
|
1866
1866
|
});
|
|
1867
1867
|
headers["Authorization"] = `Bearer ${jwt}`;
|
|
@@ -2013,7 +2013,7 @@ var _Diviswap = class _Diviswap {
|
|
|
2013
2013
|
* const token = await diviswap.getAccessToken();
|
|
2014
2014
|
* if (token) {
|
|
2015
2015
|
* // Use token for custom API calls
|
|
2016
|
-
* fetch('https://api.
|
|
2016
|
+
* fetch('https://api.liberex.sv/custom-endpoint', {
|
|
2017
2017
|
* headers: { 'Authorization': `Bearer ${token}` }
|
|
2018
2018
|
* });
|
|
2019
2019
|
* }
|