@riocrypto/common 1.0.523 → 1.0.524

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.
@@ -48,7 +48,7 @@ export declare class RioClient {
48
48
  createUser(user: UserInput): Promise<void>;
49
49
  createBusinessUser(businessUser: BusinessUserInput): Promise<BusinessUser>;
50
50
  sendPhoneAuthCode(phoneNumber: string): Promise<void>;
51
- getAuth(): Promise<{
51
+ getAuth(phoneNumber?: string): Promise<{
52
52
  auth: Auth;
53
53
  missing: string[];
54
54
  }>;
@@ -137,9 +137,9 @@ class RioClient {
137
137
  });
138
138
  });
139
139
  }
140
- getAuth() {
140
+ getAuth(phoneNumber) {
141
141
  return __awaiter(this, void 0, void 0, function* () {
142
- const response = yield this.axios.get("/api/auth");
142
+ const response = yield this.axios.get(`/api/auth?${phoneNumber ? "phoneNumber=" + phoneNumber : ""}`);
143
143
  return response.data;
144
144
  });
145
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.523",
3
+ "version": "1.0.524",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",