@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 +5 -0
- package/auth/index.js +4 -0
- package/index.js +1 -1
- package/node/auth/index.js +7 -0
- package/node/index.js +1 -1
- package/package.json +1 -1
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
package/node/auth/index.js
CHANGED
|
@@ -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