@frontegg/rest-api 7.55.0 → 7.56.0-alpha.0

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
@@ -49,6 +49,8 @@ export declare class AuthenticationApi extends BaseApiClient {
49
49
  * Login with username and password.
50
50
  * If the user has two-factor authentication, the server will return mfaToken with mfaRequired: true,
51
51
  * and then `loginWithMfa` should be called with the mfaToken and generated code.
52
+ * If the password is expired, the server will return resetPasswordToken.
53
+ * If password rotation configuration is enabled and password not expired, the server will return passwordExpiresIn and notificationPeriod.
52
54
  * Otherwise, the server will accessToken and refreshToken.
53
55
  * The refresh token should be used to renew your access token by calling `refreshToken`.
54
56
  * @throw exception if login failed
@@ -54,6 +54,10 @@ export type ILoginResponse = IUserProfile & {
54
54
  amr?: string[];
55
55
  acr?: string;
56
56
  auth_time?: number;
57
+ resetPasswordToken?: string;
58
+ passwordExpiresIn?: number;
59
+ notificationPeriod?: number;
60
+ userId?: string;
57
61
  };
58
62
  export type ILoginResponseV2 = {
59
63
  user: ILoginResponse;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.55.0
1
+ /** @license Frontegg v7.56.0-alpha.0
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/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.55.0
1
+ /** @license Frontegg v7.56.0-alpha.0
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": "7.55.0",
3
+ "version": "7.56.0-alpha.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",