@frontegg/rest-api 3.0.133 → 3.0.134

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
@@ -347,6 +347,11 @@ export declare function preVerifyMFAWebAuthnForLogin(deviceId: string, body: IPr
347
347
  * and the assertion response.
348
348
  */
349
349
  export declare function verifyMFAWebAuthnForLogin(deviceId: string, body: IVerifyMFAWebAuthn): Promise<ILoginResponse>;
350
+ /**
351
+ * after pre verify with WebAuthn, this function should be called with webauthnTokenToken, mfaToken
352
+ * and the assertion response.
353
+ */
354
+ export declare function verifyMFAWebAuthnForLoginV2(deviceId: string, body: IVerifyMFAWebAuthn): Promise<ILoginResponseV3>;
350
355
  /**
351
356
  * SSO Configurations
352
357
  */
package/auth/index.js CHANGED
@@ -290,6 +290,10 @@ export async function preVerifyMFAWebAuthnForLogin(deviceId, body) {
290
290
  export async function verifyMFAWebAuthnForLogin(deviceId, body) {
291
291
  return Post(`${urls.identity.auth.v1}/user/mfa/webauthn/${deviceId}/verify`, body);
292
292
  }
293
+ export async function verifyMFAWebAuthnForLoginV2(deviceId, body) {
294
+ const data = await Post(`${urls.identity.auth.v1}/user/mfa/webauthn/${deviceId}/verify`, body);
295
+ return generateLoginResponseV3(data);
296
+ }
293
297
  export async function getSamlConfiguration() {
294
298
  return Get(`${urls.team.sso.v1}/saml/configurations`);
295
299
  }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.133
1
+ /** @license Frontegg v3.0.134
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.
@@ -67,6 +67,7 @@ var _exportNames = {
67
67
  enrollMFAWebAuthnForLoginV2: true,
68
68
  preVerifyMFAWebAuthnForLogin: true,
69
69
  verifyMFAWebAuthnForLogin: true,
70
+ verifyMFAWebAuthnForLoginV2: true,
70
71
  getSamlConfiguration: true,
71
72
  updateSamlConfiguration: true,
72
73
  getSamlVendorConfiguration: true,
@@ -284,6 +285,7 @@ exports.verifyMFAEmailCodeV2 = verifyMFAEmailCodeV2;
284
285
  exports.verifyMFASMSForLogin = verifyMFASMSForLogin;
285
286
  exports.verifyMFASMSForLoginV2 = verifyMFASMSForLoginV2;
286
287
  exports.verifyMFAWebAuthnForLogin = verifyMFAWebAuthnForLogin;
288
+ exports.verifyMFAWebAuthnForLoginV2 = verifyMFAWebAuthnForLoginV2;
287
289
  exports.verifyMfa = verifyMfa;
288
290
  exports.verifyNewDeviceSession = verifyNewDeviceSession;
289
291
  exports.verifyResetPhoneNumber = verifyResetPhoneNumber;
@@ -685,6 +687,11 @@ async function verifyMFAWebAuthnForLogin(deviceId, body) {
685
687
  return (0, _fetch.Post)(`${_constants.urls.identity.auth.v1}/user/mfa/webauthn/${deviceId}/verify`, body);
686
688
  }
687
689
 
690
+ async function verifyMFAWebAuthnForLoginV2(deviceId, body) {
691
+ const data = await (0, _fetch.Post)(`${_constants.urls.identity.auth.v1}/user/mfa/webauthn/${deviceId}/verify`, body);
692
+ return generateLoginResponseV3(data);
693
+ }
694
+
688
695
  async function getSamlConfiguration() {
689
696
  return (0, _fetch.Get)(`${_constants.urls.team.sso.v1}/saml/configurations`);
690
697
  }
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.133
1
+ /** @license Frontegg v3.0.134
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.133",
3
+ "version": "3.0.134",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {