@frontegg/client
Advanced tools
Comparing version 1.2.11 to 1.2.12
@@ -14,3 +14,3 @@ "use strict"; | ||
} | ||
urls.authenticationService = process.env.FRONTEGG_AUTHENTICATION_SERVICE_URL || exports.baseUrl + "/vendors/auth/token"; | ||
urls.authenticationService = process.env.FRONTEGG_AUTHENTICATION_SERVICE_URL || exports.baseUrl + "/auth/vendor"; | ||
urls.auditsService = process.env.FRONTEGG_AUDITS_SERVICE_URL || exports.baseUrl + "/audits/"; | ||
@@ -17,0 +17,0 @@ urls.notificationService = process.env.FRONTEGG_NOTIFICATION_SERVICE_URL || exports.baseUrl + "/notification/"; |
@@ -12,4 +12,4 @@ export interface ISamlResponse { | ||
*/ | ||
prelogin(payload: string, scopes?: string[]): Promise<string>; | ||
prelogin(payload: string, scopes?: string[], additionalUrlParams?: any): Promise<string>; | ||
postlogin(samlResponse: ISamlResponse): Promise<any>; | ||
} |
@@ -65,3 +65,3 @@ "use strict"; | ||
*/ | ||
SsoClient.prototype.prelogin = function (payload, scopes) { | ||
SsoClient.prototype.prelogin = function (payload, scopes, additionalUrlParams) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -71,3 +71,3 @@ var preloginRes; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, axios_1.default.post(config_1.config.urls.teamService + "/resources/sso/v1/prelogin", { payload: payload, scopes: scopes }, { | ||
case 0: return [4 /*yield*/, axios_1.default.post(config_1.config.urls.teamService + "/resources/sso/v1/prelogin", { payload: payload, scopes: scopes, additionalUrlParams: additionalUrlParams }, { | ||
headers: { | ||
@@ -74,0 +74,0 @@ 'x-access-token': this.authenticator.accessToken, |
{ | ||
"name": "@frontegg/client", | ||
"version": "1.2.11", | ||
"version": "1.2.12", | ||
"description": "Frontegg Javascript Library for backend", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
246460