@frontegg/rest-api 2.10.80 → 2.10.81
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/CHANGELOG.md +2 -0
- package/dist/auth/interfaces.d.ts +4 -2
- package/dist/auth/interfaces.js +2 -2
- package/dist/auth/interfaces.js.map +1 -1
- package/dist/es2015/auth/interfaces.d.ts +4 -2
- package/dist/es2015/auth/interfaces.js +2 -2
- package/dist/es2015/auth/interfaces.js.map +1 -1
- package/dist/umd/index.js +2 -2
- package/package.json +1 -1
- package/src/auth/interfaces.ts +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.10.81](https://github.com/frontegg/typescript-rest-api/compare/v2.10.80...v2.10.81) (2022-06-29)
|
|
6
|
+
|
|
5
7
|
### [2.10.80](https://github.com/frontegg/typescript-rest-api/compare/v2.10.79...v2.10.80) (2022-06-28)
|
|
6
8
|
|
|
7
9
|
### [2.10.79](https://github.com/frontegg/typescript-rest-api/compare/v2.10.78...v2.10.79) (2022-06-27)
|
|
@@ -339,6 +339,7 @@ interface WebAuthnLoginResponse {
|
|
|
339
339
|
}
|
|
340
340
|
export interface IWebAuthnPreLogin {
|
|
341
341
|
email: string;
|
|
342
|
+
recaptchaToken?: string;
|
|
342
343
|
}
|
|
343
344
|
interface AllowCredentials {
|
|
344
345
|
type: string;
|
|
@@ -376,6 +377,7 @@ export interface ICreateNewDeviceSessionResponse {
|
|
|
376
377
|
}>;
|
|
377
378
|
excludeCredentials?: AllowCredentials[];
|
|
378
379
|
timeout?: number;
|
|
380
|
+
authenticationSelection?: AuthenticatorSelectionCriteria;
|
|
379
381
|
}
|
|
380
382
|
interface IWebAuthnRegisterResponse {
|
|
381
383
|
clientDataJSON: string;
|
|
@@ -386,8 +388,8 @@ export interface IVerifyNewWebAuthnDevice {
|
|
|
386
388
|
response: IWebAuthnRegisterResponse;
|
|
387
389
|
}
|
|
388
390
|
export declare enum SecondaryAuthStrategy {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
+
WebAuthnPlatform = "WebAuthnPlatform",
|
|
392
|
+
WebAuthnCrossPlatform = "WebAuthnCrossPlatform",
|
|
391
393
|
SmsCode = "SmsCode"
|
|
392
394
|
}
|
|
393
395
|
export interface IAuthStrategyConfig {
|
package/dist/auth/interfaces.js
CHANGED
|
@@ -21,8 +21,8 @@ __exportStar(require("./secutiry-poilicy/interfaces"), exports);
|
|
|
21
21
|
;
|
|
22
22
|
var SecondaryAuthStrategy;
|
|
23
23
|
(function (SecondaryAuthStrategy) {
|
|
24
|
-
SecondaryAuthStrategy["
|
|
25
|
-
SecondaryAuthStrategy["
|
|
24
|
+
SecondaryAuthStrategy["WebAuthnPlatform"] = "WebAuthnPlatform";
|
|
25
|
+
SecondaryAuthStrategy["WebAuthnCrossPlatform"] = "WebAuthnCrossPlatform";
|
|
26
26
|
SecondaryAuthStrategy["SmsCode"] = "SmsCode";
|
|
27
27
|
})(SecondaryAuthStrategy = exports.SecondaryAuthStrategy || (exports.SecondaryAuthStrategy = {}));
|
|
28
28
|
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/auth/interfaces.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,gEAA8C;AAyW7C,CAAC;AAID,CAAC;AAKD,CAAC;AAID,CAAC;AAKD,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/auth/interfaces.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,gEAA8C;AAyW7C,CAAC;AAID,CAAC;AAKD,CAAC;AAID,CAAC;AAKD,CAAC;AAYD,CAAC;AAqBD,CAAC;AAsBF,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,8DAAqC,CAAA;IACrC,wEAA+C,CAAA;IAC/C,4CAAmB,CAAA;AACrB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
|
|
@@ -339,6 +339,7 @@ interface WebAuthnLoginResponse {
|
|
|
339
339
|
}
|
|
340
340
|
export interface IWebAuthnPreLogin {
|
|
341
341
|
email: string;
|
|
342
|
+
recaptchaToken?: string;
|
|
342
343
|
}
|
|
343
344
|
interface AllowCredentials {
|
|
344
345
|
type: string;
|
|
@@ -376,6 +377,7 @@ export interface ICreateNewDeviceSessionResponse {
|
|
|
376
377
|
}>;
|
|
377
378
|
excludeCredentials?: AllowCredentials[];
|
|
378
379
|
timeout?: number;
|
|
380
|
+
authenticationSelection?: AuthenticatorSelectionCriteria;
|
|
379
381
|
}
|
|
380
382
|
interface IWebAuthnRegisterResponse {
|
|
381
383
|
clientDataJSON: string;
|
|
@@ -386,8 +388,8 @@ export interface IVerifyNewWebAuthnDevice {
|
|
|
386
388
|
response: IWebAuthnRegisterResponse;
|
|
387
389
|
}
|
|
388
390
|
export declare enum SecondaryAuthStrategy {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
+
WebAuthnPlatform = "WebAuthnPlatform",
|
|
392
|
+
WebAuthnCrossPlatform = "WebAuthnCrossPlatform",
|
|
391
393
|
SmsCode = "SmsCode"
|
|
392
394
|
}
|
|
393
395
|
export interface IAuthStrategyConfig {
|
|
@@ -8,8 +8,8 @@ export * from './secutiry-poilicy/interfaces';
|
|
|
8
8
|
;
|
|
9
9
|
export var SecondaryAuthStrategy;
|
|
10
10
|
(function (SecondaryAuthStrategy) {
|
|
11
|
-
SecondaryAuthStrategy["
|
|
12
|
-
SecondaryAuthStrategy["
|
|
11
|
+
SecondaryAuthStrategy["WebAuthnPlatform"] = "WebAuthnPlatform";
|
|
12
|
+
SecondaryAuthStrategy["WebAuthnCrossPlatform"] = "WebAuthnCrossPlatform";
|
|
13
13
|
SecondaryAuthStrategy["SmsCode"] = "SmsCode";
|
|
14
14
|
})(SecondaryAuthStrategy || (SecondaryAuthStrategy = {}));
|
|
15
15
|
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/auth/interfaces.ts"],"names":[],"mappings":"AAIA,cAAc,+BAA+B,CAAC;AAyW7C,CAAC;AAID,CAAC;AAKD,CAAC;AAID,CAAC;AAKD,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/auth/interfaces.ts"],"names":[],"mappings":"AAIA,cAAc,+BAA+B,CAAC;AAyW7C,CAAC;AAID,CAAC;AAKD,CAAC;AAID,CAAC;AAKD,CAAC;AAYD,CAAC;AAqBD,CAAC;AAsBF,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,8DAAqC,CAAA;IACrC,wEAA+C,CAAA;IAC/C,4CAAmB,CAAA;AACrB,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC"}
|
package/dist/umd/index.js
CHANGED
|
@@ -2766,8 +2766,8 @@
|
|
|
2766
2766
|
|
|
2767
2767
|
exports.SecondaryAuthStrategy = void 0;
|
|
2768
2768
|
(function (SecondaryAuthStrategy) {
|
|
2769
|
-
SecondaryAuthStrategy["
|
|
2770
|
-
SecondaryAuthStrategy["
|
|
2769
|
+
SecondaryAuthStrategy["WebAuthnPlatform"] = "WebAuthnPlatform";
|
|
2770
|
+
SecondaryAuthStrategy["WebAuthnCrossPlatform"] = "WebAuthnCrossPlatform";
|
|
2771
2771
|
SecondaryAuthStrategy["SmsCode"] = "SmsCode";
|
|
2772
2772
|
})(exports.SecondaryAuthStrategy || (exports.SecondaryAuthStrategy = {}));
|
|
2773
2773
|
|
package/package.json
CHANGED
package/src/auth/interfaces.ts
CHANGED
|
@@ -392,6 +392,7 @@ interface WebAuthnLoginResponse {
|
|
|
392
392
|
|
|
393
393
|
export interface IWebAuthnPreLogin {
|
|
394
394
|
email: string;
|
|
395
|
+
recaptchaToken?: string;
|
|
395
396
|
};
|
|
396
397
|
|
|
397
398
|
interface AllowCredentials {
|
|
@@ -422,6 +423,7 @@ export interface ICreateNewDeviceSessionResponse {
|
|
|
422
423
|
pubKeyCredParams: Array<{ type: 'public-key'; alg: number }>;
|
|
423
424
|
excludeCredentials?: AllowCredentials[];
|
|
424
425
|
timeout?: number;
|
|
426
|
+
authenticationSelection?: AuthenticatorSelectionCriteria;
|
|
425
427
|
}
|
|
426
428
|
|
|
427
429
|
interface IWebAuthnRegisterResponse {
|
|
@@ -435,8 +437,8 @@ export interface IVerifyNewWebAuthnDevice {
|
|
|
435
437
|
}
|
|
436
438
|
|
|
437
439
|
export enum SecondaryAuthStrategy {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
+
WebAuthnPlatform = 'WebAuthnPlatform',
|
|
441
|
+
WebAuthnCrossPlatform = 'WebAuthnCrossPlatform',
|
|
440
442
|
SmsCode = 'SmsCode'
|
|
441
443
|
}
|
|
442
444
|
|