@frontegg/rest-api 7.53.0-alpha.0 → 7.54.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.js +5 -2
- package/auth/interfaces.d.ts +2 -0
- package/index.js +1 -1
- package/node/auth/index.js +5 -2
- package/node/index.js +1 -1
- package/package.json +1 -1
package/auth/index.js
CHANGED
|
@@ -428,7 +428,8 @@ export class AuthenticationApi extends BaseApiClient {
|
|
|
428
428
|
shouldActivate,
|
|
429
429
|
authResponse,
|
|
430
430
|
userId,
|
|
431
|
-
tenantId
|
|
431
|
+
tenantId,
|
|
432
|
+
activationToken
|
|
432
433
|
} = await this.post(`${urls.identity.users.v1}/signUp`, body);
|
|
433
434
|
const response = {
|
|
434
435
|
shouldActivate,
|
|
@@ -447,7 +448,9 @@ export class AuthenticationApi extends BaseApiClient {
|
|
|
447
448
|
activeTenant
|
|
448
449
|
});
|
|
449
450
|
}
|
|
450
|
-
return response
|
|
451
|
+
return _extends({}, response, {
|
|
452
|
+
activationToken
|
|
453
|
+
});
|
|
451
454
|
};
|
|
452
455
|
this.getCurrentUserSessions = async () => {
|
|
453
456
|
return this.get(urls.identity.users.sessions.currentUser.v1);
|
package/auth/interfaces.d.ts
CHANGED
|
@@ -242,12 +242,14 @@ export interface ISignUpResponse {
|
|
|
242
242
|
tenantId?: string;
|
|
243
243
|
tenants?: ITenantsResponse[];
|
|
244
244
|
activeTenant?: ITenantsResponse;
|
|
245
|
+
activationToken?: string;
|
|
245
246
|
}
|
|
246
247
|
export interface ISignUpApiResponse {
|
|
247
248
|
shouldActivate: boolean;
|
|
248
249
|
userId?: string;
|
|
249
250
|
tenantId?: string;
|
|
250
251
|
authResponse: ILoginResponse;
|
|
252
|
+
activationToken?: string;
|
|
251
253
|
}
|
|
252
254
|
export interface ISessionResponse {
|
|
253
255
|
id: string;
|
package/index.js
CHANGED
package/node/auth/index.js
CHANGED
|
@@ -494,7 +494,8 @@ class AuthenticationApi extends _BaseApiClient.BaseApiClient {
|
|
|
494
494
|
shouldActivate,
|
|
495
495
|
authResponse,
|
|
496
496
|
userId,
|
|
497
|
-
tenantId
|
|
497
|
+
tenantId,
|
|
498
|
+
activationToken
|
|
498
499
|
} = await this.post(`${_constants2.urls.identity.users.v1}/signUp`, body);
|
|
499
500
|
const response = {
|
|
500
501
|
shouldActivate,
|
|
@@ -513,7 +514,9 @@ class AuthenticationApi extends _BaseApiClient.BaseApiClient {
|
|
|
513
514
|
activeTenant
|
|
514
515
|
});
|
|
515
516
|
}
|
|
516
|
-
return response
|
|
517
|
+
return (0, _extends2.default)({}, response, {
|
|
518
|
+
activationToken
|
|
519
|
+
});
|
|
517
520
|
};
|
|
518
521
|
this.getCurrentUserSessions = async () => {
|
|
519
522
|
return this.get(_constants2.urls.identity.users.sessions.currentUser.v1);
|
package/node/index.js
CHANGED