Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontegg/rest-api

Package Overview
Dependencies
Maintainers
1
Versions
607
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/rest-api - npm Package Compare versions

Comparing version 1.12.0 to 1.13.0

11

auth/index.d.ts

@@ -1,2 +0,2 @@

import { IActivateAccount, IDisableMfa, IEnrollMfaResponse, IForgotPassword, ILogin, ILoginResponse, ILoginWithMfa, IPreLogin, IPostLogin, IRecoverMFAToken, IResetPassword, ISamlConfiguration, ISamlVendorConfigResponse, IUpdateSamlConfiguration, IUpdateSamlVendorMetadata, IVerifyMfa, IVerifyMfaResponse, IAcceptInvitation, ISocialLoginProviderConfiguration, ILoginViaSocialLogin } from './interfaces';
import { IActivateAccount, IDisableMfa, IEnrollMfaResponse, IForgotPassword, ILogin, ILoginResponse, ILoginWithMfa, IPreLogin, IPostLogin, IRecoverMFAToken, IResetPassword, ISamlConfiguration, ISamlVendorConfigResponse, IUpdateSamlConfiguration, IUpdateSamlVendorMetadata, IVerifyMfa, IVerifyMfaResponse, IAcceptInvitation, ISocialLoginProviderConfiguration, ILoginViaSocialLogin, IVendorConfig, ISignUpUser, ISignUpResponse } from './interfaces';
/**

@@ -152,1 +152,10 @@ * Check if requested email address has sso configuration

export declare function loginViaSocialLogin({ provider, code }: ILoginViaSocialLogin): Promise<void>;
/**
* Get vendor secure access configuration
*/
export declare function getVendorConfig(): Promise<IVendorConfig>;
/**
* Sign up new user
* create new user with a new tenant
*/
export declare function signUpUser(body: ISignUpUser): Promise<ISignUpResponse>;

@@ -103,1 +103,16 @@ import { IUserProfile } from '..';

}
export interface IVendorConfig {
allowSignups: boolean;
}
export interface ISignUpUser {
email: string;
companyName: string;
name?: string;
password?: string;
phoneNumber?: string;
metadata?: string /** JSON */;
roleIds?: string[];
}
export interface ISignUpResponse {
shouldActivate: boolean;
}

@@ -704,2 +704,25 @@ import { __awaiter, __generator, __assign, __rest } from 'tslib';

}
/**
* Get vendor secure access configuration
*/
function getVendorConfig() {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
console.debug('getVendorConfig()');
return [2 /*return*/, Get(IDENTITY_CONFIGURATION_SERVICE_URL_V1 + "/public")];
});
});
}
/**
* Sign up new user
* create new user with a new tenant
*/
function signUpUser(body) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
console.debug('signUpUser()', body);
return [2 /*return*/, Post(USERS_SERVICE_URL_V1 + "/signUp", body)];
});
});
}

@@ -729,3 +752,5 @@ var auth = /*#__PURE__*/Object.freeze({

getSocialLoginsProviders: getSocialLoginsProviders,
loginViaSocialLogin: loginViaSocialLogin
loginViaSocialLogin: loginViaSocialLogin,
getVendorConfig: getVendorConfig,
signUpUser: signUpUser
});

@@ -732,0 +757,0 @@

@@ -528,2 +528,21 @@ import { __awaiter, __rest } from 'tslib';

}
/**
* Get vendor secure access configuration
*/
function getVendorConfig() {
return __awaiter(this, void 0, void 0, function* () {
console.debug('getVendorConfig()');
return Get(`${IDENTITY_CONFIGURATION_SERVICE_URL_V1}/public`);
});
}
/**
* Sign up new user
* create new user with a new tenant
*/
function signUpUser(body) {
return __awaiter(this, void 0, void 0, function* () {
console.debug('signUpUser()', body);
return Post(`${USERS_SERVICE_URL_V1}/signUp`, body);
});
}

@@ -553,3 +572,5 @@ var auth = /*#__PURE__*/Object.freeze({

getSocialLoginsProviders: getSocialLoginsProviders,
loginViaSocialLogin: loginViaSocialLogin
loginViaSocialLogin: loginViaSocialLogin,
getVendorConfig: getVendorConfig,
signUpUser: signUpUser
});

@@ -556,0 +577,0 @@

@@ -710,2 +710,25 @@ 'use strict';

}
/**
* Get vendor secure access configuration
*/
function getVendorConfig() {
return tslib.__awaiter(this, void 0, void 0, function () {
return tslib.__generator(this, function (_a) {
console.debug('getVendorConfig()');
return [2 /*return*/, Get(IDENTITY_CONFIGURATION_SERVICE_URL_V1 + "/public")];
});
});
}
/**
* Sign up new user
* create new user with a new tenant
*/
function signUpUser(body) {
return tslib.__awaiter(this, void 0, void 0, function () {
return tslib.__generator(this, function (_a) {
console.debug('signUpUser()', body);
return [2 /*return*/, Post(USERS_SERVICE_URL_V1 + "/signUp", body)];
});
});
}

@@ -735,3 +758,5 @@ var auth = /*#__PURE__*/Object.freeze({

getSocialLoginsProviders: getSocialLoginsProviders,
loginViaSocialLogin: loginViaSocialLogin
loginViaSocialLogin: loginViaSocialLogin,
getVendorConfig: getVendorConfig,
signUpUser: signUpUser
});

@@ -738,0 +763,0 @@

4

package.json
{
"name": "@frontegg/rest-api",
"libName": "FronteggRestApi",
"version": "1.12.0",
"version": "1.13.0",
"author": "Frontegg LTD",

@@ -12,5 +12,5 @@ "module": "index.esm.js",

},
"gitHead": "131930c7a0d40362d1c6a4834c5420e5c85b44e5",
"gitHead": "7ccf18e2bb6cb9a1ade950b2b16684496422529d",
"main": "index.js",
"peerDependencies": {}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc