medos-sdk 1.1.2 → 1.1.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const API_BASE_URL = "https://api.
|
|
1
|
+
export declare const API_BASE_URL = "https://api-dev.medapi.in/v1";
|
package/dist/constants/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const API_BASE_URL = "https://api.
|
|
1
|
+
export const API_BASE_URL = "https://api-dev.medapi.in/v1";
|
|
@@ -4,7 +4,7 @@ let sessionToken = null;
|
|
|
4
4
|
const AuthService = {
|
|
5
5
|
async init(apiKey) {
|
|
6
6
|
try {
|
|
7
|
-
const res = await axios.post(`${API_BASE_URL}/
|
|
7
|
+
const res = await axios.post(`${API_BASE_URL}/auth/session?api_key=${apiKey}`, {});
|
|
8
8
|
const token = res.data?.access_token;
|
|
9
9
|
if (!token || typeof token !== "string") {
|
|
10
10
|
throw new Error("Invalid session token response");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const API_BASE_URL = "https://api.
|
|
1
|
+
export declare const API_BASE_URL = "https://api-dev.medapi.in/v1";
|
|
@@ -3847,13 +3847,13 @@
|
|
|
3847
3847
|
mergeConfig
|
|
3848
3848
|
} = axios;
|
|
3849
3849
|
|
|
3850
|
-
const API_BASE_URL = "https://api.
|
|
3850
|
+
const API_BASE_URL = "https://api-dev.medapi.in/v1";
|
|
3851
3851
|
|
|
3852
3852
|
let sessionToken = null;
|
|
3853
3853
|
const AuthService = {
|
|
3854
3854
|
async init(apiKey) {
|
|
3855
3855
|
try {
|
|
3856
|
-
const res = await axios.post(`${API_BASE_URL}/
|
|
3856
|
+
const res = await axios.post(`${API_BASE_URL}/auth/session?api_key=${apiKey}`, {});
|
|
3857
3857
|
const token = res.data?.access_token;
|
|
3858
3858
|
if (!token || typeof token !== "string") {
|
|
3859
3859
|
throw new Error("Invalid session token response");
|
package/dist/vanilla/widget.js
CHANGED
|
@@ -3847,13 +3847,13 @@
|
|
|
3847
3847
|
mergeConfig
|
|
3848
3848
|
} = axios;
|
|
3849
3849
|
|
|
3850
|
-
const API_BASE_URL = "https://api.
|
|
3850
|
+
const API_BASE_URL = "https://api-dev.medapi.in/v1";
|
|
3851
3851
|
|
|
3852
3852
|
let sessionToken = null;
|
|
3853
3853
|
const AuthService = {
|
|
3854
3854
|
async init(apiKey) {
|
|
3855
3855
|
try {
|
|
3856
|
-
const res = await axios.post(`${API_BASE_URL}/
|
|
3856
|
+
const res = await axios.post(`${API_BASE_URL}/auth/session?api_key=${apiKey}`, {});
|
|
3857
3857
|
const token = res.data?.access_token;
|
|
3858
3858
|
if (!token || typeof token !== "string") {
|
|
3859
3859
|
throw new Error("Invalid session token response");
|
package/package.json
CHANGED