@frontegg/rest-api 3.0.124 → 3.0.126

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.js CHANGED
@@ -211,7 +211,7 @@ export async function preVerifyMFAEmailCode(body) {
211
211
  return Post(`${urls.identity.auth.v1}/user/mfa/emailcode`, body);
212
212
  }
213
213
  export async function verifyMFAEmailCode(body) {
214
- return Post(`${urls.identity.users.v1}/user/mfa/emailcode/verify`, body);
214
+ return Post(`${urls.identity.auth.v1}/user/mfa/emailcode/verify`, body);
215
215
  }
216
216
  export async function preEnrollMFASMSForLogin(body) {
217
217
  return Post(`${urls.identity.auth.v1}/user/mfa/sms/enroll`, body);
@@ -4,6 +4,7 @@ import { ISamlRolesGroup } from "../teams/interfaces";
4
4
  export * from "./secutiry-poilicy/interfaces";
5
5
  export declare type IPreLogin = {
6
6
  email: string;
7
+ tenantId?: string;
7
8
  };
8
9
  export declare type IPostLogin = {
9
10
  RelayState: string;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.124
1
+ /** @license Frontegg v3.0.126
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.
@@ -557,7 +557,7 @@ async function preVerifyMFAEmailCode(body) {
557
557
  }
558
558
 
559
559
  async function verifyMFAEmailCode(body) {
560
- return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/user/mfa/emailcode/verify`, body);
560
+ return (0, _fetch.Post)(`${_constants.urls.identity.auth.v1}/user/mfa/emailcode/verify`, body);
561
561
  }
562
562
 
563
563
  async function preEnrollMFASMSForLogin(body) {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.124
1
+ /** @license Frontegg v3.0.126
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.124",
3
+ "version": "3.0.126",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {