@frontegg/rest-api
Advanced tools
Comparing version 3.0.119 to 3.0.120
@@ -95,2 +95,7 @@ export * from "./secutiry-poilicy"; | ||
/** | ||
* refresh token called as authenticated use, access and refresh tokens resolved by the cookies. | ||
* the server will return ILoginResponseV3 with new access Token and refresh token and store it in the browser cookies, as well as the tenants and the active tenant. | ||
*/ | ||
export declare function refreshTokenV3(): Promise<ILoginResponseV3>; | ||
/** | ||
* logout from server, invalidate access and refresh token, remove it from cookies. | ||
@@ -97,0 +102,0 @@ */ |
@@ -134,2 +134,6 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; | ||
} | ||
export async function refreshTokenV3() { | ||
const data = await Post(`${urls.identity.auth.v1}/user/token/refresh`); | ||
return generateLoginResponseV3(data); | ||
} | ||
export async function logout() { | ||
@@ -136,0 +140,0 @@ return Post(`${urls.identity.auth.v1}/logout`); |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.0.119 | ||
/** @license Frontegg v3.0.120 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -26,2 +26,3 @@ "use strict"; | ||
refreshTokenV2: true, | ||
refreshTokenV3: true, | ||
logout: true, | ||
@@ -229,2 +230,3 @@ OAuthLogout: true, | ||
exports.refreshTokenV2 = refreshTokenV2; | ||
exports.refreshTokenV3 = refreshTokenV3; | ||
exports.resendActivationEmail = resendActivationEmail; | ||
@@ -450,2 +452,7 @@ exports.resendInvitationEmail = resendInvitationEmail; | ||
async function refreshTokenV3() { | ||
const data = await (0, _fetch.Post)(`${_constants.urls.identity.auth.v1}/user/token/refresh`); | ||
return generateLoginResponseV3(data); | ||
} | ||
async function logout() { | ||
@@ -452,0 +459,0 @@ return (0, _fetch.Post)(`${_constants.urls.identity.auth.v1}/logout`); |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.0.119 | ||
/** @license Frontegg v3.0.120 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@frontegg/rest-api", | ||
"version": "3.0.119", | ||
"version": "3.0.120", | ||
"main": "./node/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
343574
9575