@frontegg/rest-api
Advanced tools
+4
-0
@@ -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>; |
+8
-0
@@ -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
-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 |
+1
-1
| { | ||
| "name": "@frontegg/rest-api", | ||
| "version": "7.111.0-alpha.4", | ||
| "version": "7.111.0", | ||
| "main": "./node/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
557219
0.14%14483
0.15%2
-33.33%