@frontegg/rest-api 3.0.41 → 3.0.42

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/auth/index.d.ts CHANGED
@@ -145,7 +145,7 @@ export declare function enrollMFAAuthenticatorApp(body: WithoutMFAToken<IEnrollM
145
145
  * pre enroll Multi-Factor SMS
146
146
  * the server returns otcToken that should be sent to the enroll function with the code that was sent to
147
147
  */
148
- export declare function preEnrollMFASMS(): Promise<IPreEnrollMFASMSResponse>;
148
+ export declare function preEnrollMFASMS(body: WithoutMFAToken<IPreEnrollMFASMS>): Promise<IPreEnrollMFASMSResponse>;
149
149
  /**
150
150
  * after pre enroll with SMS, enroll SMS function should be called
151
151
  * with the otcToken and the code that has been sent to the phone number that was requested
package/auth/index.js CHANGED
@@ -134,8 +134,8 @@ export async function preEnrollMFAAuthenticatorApp() {
134
134
  export async function enrollMFAAuthenticatorApp(body) {
135
135
  return Post(`${urls.identity.users.v1}/mfa/authenticator/enroll/verify`, body);
136
136
  }
137
- export async function preEnrollMFASMS() {
138
- return Post(`${urls.identity.users.v1}/mfa/sms/enroll`);
137
+ export async function preEnrollMFASMS(body) {
138
+ return Post(`${urls.identity.users.v1}/mfa/sms/enroll`, body);
139
139
  }
140
140
  export async function enrollMFASMS(body) {
141
141
  return Post(`${urls.identity.users.v1}/mfa/sms/enroll/verify`, body);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.41
1
+ /** @license Frontegg v3.0.42
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -431,8 +431,8 @@ async function enrollMFAAuthenticatorApp(body) {
431
431
  return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/authenticator/enroll/verify`, body);
432
432
  }
433
433
 
434
- async function preEnrollMFASMS() {
435
- return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/sms/enroll`);
434
+ async function preEnrollMFASMS(body) {
435
+ return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/sms/enroll`, body);
436
436
  }
437
437
 
438
438
  async function enrollMFASMS(body) {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.41
1
+ /** @license Frontegg v3.0.42
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.41",
3
+ "version": "3.0.42",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {