@bytexbyte/ike-app-api 1.0.9 → 1.0.10
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/lib/Auth/index.d.ts +0 -8
- package/lib/Auth/index.js +0 -19
- package/package.json +1 -1
package/lib/Auth/index.d.ts
CHANGED
|
@@ -39,14 +39,6 @@ declare class IKEAppAuthApi extends BxBApi {
|
|
|
39
39
|
verify?: undefined;
|
|
40
40
|
error: 'Field(s) cannot be empty.';
|
|
41
41
|
}>;
|
|
42
|
-
signUp(body: {
|
|
43
|
-
phone: string;
|
|
44
|
-
code: string;
|
|
45
|
-
}): Promise<{
|
|
46
|
-
id: string;
|
|
47
|
-
} | {
|
|
48
|
-
error: 'Field(s) cannot be empty.' | 'User already created.' | 'Invalid OTP code.';
|
|
49
|
-
}>;
|
|
50
42
|
createBiometrics(form: {
|
|
51
43
|
publicKey: string;
|
|
52
44
|
id: string;
|
package/lib/Auth/index.js
CHANGED
|
@@ -121,25 +121,6 @@ var IKEAppAuthApi = /** @class */ (function (_super) {
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
-
IKEAppAuthApi.prototype.signUp = function (body) {
|
|
125
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
126
|
-
var response;
|
|
127
|
-
return __generator(this, function (_a) {
|
|
128
|
-
switch (_a.label) {
|
|
129
|
-
case 0: return [4 /*yield*/, this.bxbFetch({
|
|
130
|
-
method: 'POST',
|
|
131
|
-
headers: {
|
|
132
|
-
'Content-Type': 'application/json',
|
|
133
|
-
},
|
|
134
|
-
body: JSON.stringify(body),
|
|
135
|
-
}, "sign-up")];
|
|
136
|
-
case 1:
|
|
137
|
-
response = _a.sent();
|
|
138
|
-
return [2 /*return*/, response.json()];
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
};
|
|
143
124
|
IKEAppAuthApi.prototype.createBiometrics = function (form) {
|
|
144
125
|
return __awaiter(this, void 0, void 0, function () {
|
|
145
126
|
var response;
|