@riocrypto/common 1.0.1167 → 1.0.1169

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.
@@ -15,6 +15,7 @@ class RioClient {
15
15
  this.axios = axios;
16
16
  if (process.env.NEXT_PUBLIC_RUNNING_LOCAL === "true") {
17
17
  this.axios.defaults.baseURL = "https://dev.riotransfer.co";
18
+ this.axios.defaults.withCredentials = true;
18
19
  }
19
20
  axios.interceptors.request.use((config) => {
20
21
  // Exclude specific cookie from being sent
@@ -185,7 +186,9 @@ class RioClient {
185
186
  }
186
187
  getSecurityQuestion() {
187
188
  return __awaiter(this, void 0, void 0, function* () {
188
- const response = yield this.axios.get(`/api/auth/security-question`);
189
+ const response = yield this.axios.get(`/api/auth/security-question`, {
190
+ withCredentials: true,
191
+ });
189
192
  return response.data.securityQuestion;
190
193
  });
191
194
  }
@@ -205,8 +208,6 @@ class RioClient {
205
208
  yield this.axios.post("/api/auth/verify-code", {
206
209
  phoneNumber,
207
210
  code,
208
- }, {
209
- withCredentials: true,
210
211
  });
211
212
  });
212
213
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1167",
3
+ "version": "1.0.1169",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",