🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@frontegg/rest-api

Package Overview
Dependencies
Maintainers
3
Versions
790
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
7.111.0-alpha.4
to
7.111.0
+4
-0
auth/index.d.ts

@@ -744,2 +744,6 @@ export * from './secutiry-poilicy';

silentOAuthRefreshTokenV2: () => Promise<ILoginResponseV3>;
silentOAuthRefreshTokenV3: (tokens: {
accessToken: string;
refreshToken: string;
}) => Promise<ILoginResponseV3>;
exchangeOAuthTokens: (body: IExchangeOAuthTokens) => Promise<ILoginResponse>;

@@ -746,0 +750,0 @@ silentOAuthRefreshToken: () => Promise<ILoginResponse>;

@@ -678,2 +678,10 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

};
this.silentOAuthRefreshTokenV3 = async tokens => {
const oauthResponse = {
access_token: tokens.accessToken,
id_token: tokens.accessToken,
refresh_token: tokens.refreshToken
};
return this.generateLoginResponseFromOAuthResponseV2(oauthResponse);
};
this.exchangeOAuthTokens = async body => {

@@ -680,0 +688,0 @@ const data = await this.post(`${urls.oauth.v1}/token`, body);

@@ -497,2 +497,4 @@ import { UserEntitlementsContext as UserEntitlementsResponseV2 } from '@frontegg/entitlements-javascript-commons';

refresh_token?: string;
grant_type?: string;
tenantId?: string;
}

@@ -499,0 +501,0 @@ export interface IOAuthTokenResponse {

+1
-1

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

/** @license Frontegg v7.111.0-alpha.4
/** @license Frontegg v7.111.0
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -743,2 +743,10 @@ "use strict";

};
this.silentOAuthRefreshTokenV3 = async tokens => {
const oauthResponse = {
access_token: tokens.accessToken,
id_token: tokens.accessToken,
refresh_token: tokens.refreshToken
};
return this.generateLoginResponseFromOAuthResponseV2(oauthResponse);
};
this.exchangeOAuthTokens = async body => {

@@ -745,0 +753,0 @@ const data = await this.post(`${_constants2.urls.oauth.v1}/token`, body);

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

/** @license Frontegg v7.111.0-alpha.4
/** @license Frontegg v7.111.0
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

{
"name": "@frontegg/rest-api",
"version": "7.111.0-alpha.4",
"version": "7.111.0",
"main": "./node/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",