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
618
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 3.0.119 to 3.0.120

5

auth/index.d.ts

@@ -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 @@ */

4

auth/index.js

@@ -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`);

2

index.js

@@ -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",

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