New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@laserfiche/lf-api-client-core

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@laserfiche/lf-api-client-core - npm Package Compare versions

Comparing version

to
1.0.3--preview-2492068093

@@ -26,4 +26,5 @@ import { AccessKey } from './AccessKey.js';

* @param client_id OAuth application client id
* @param client_secret OPTIONAL OAuth application client secret
*/
refreshAccessToken(refresh_token: string, client_id: string): Promise<GetAccessTokenResponse>;
refreshAccessToken(refresh_token: string, client_id: string, client_secret?: string): Promise<GetAccessTokenResponse>;
}

@@ -41,3 +42,3 @@ /**

*/
refreshAccessToken(refresh_token: string, client_id: string): Promise<GetAccessTokenResponse>;
refreshAccessToken(refresh_token: string, client_id: string, client_secret?: string): Promise<GetAccessTokenResponse>;
/**

@@ -44,0 +45,0 @@ * Gets an OAuth access token given an OAuth code

@@ -28,6 +28,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

*/
refreshAccessToken(refresh_token, client_id) {
refreshAccessToken(refresh_token, client_id, client_secret) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
const request = this.createRefreshTokenRequest(refresh_token, client_id);
const request = this.createRefreshTokenRequest(refresh_token, client_id, client_secret);
let url = this._baseUrl;

@@ -156,5 +156,5 @@ const res = yield fetch(url, request);

}
createRefreshTokenRequest(refreshToken, client_id) {
createRefreshTokenRequest(refreshToken, client_id, client_secret) {
const request = { method: 'POST' };
const headers = this.getPostRequestHeaders();
const headers = this.getPostRequestHeaders(client_id, client_secret);
const body = {

@@ -161,0 +161,0 @@ grant_type: 'refresh_token',

{
"name": "@laserfiche/lf-api-client-core",
"version": "1.0.3--preview-2492007535",
"version": "1.0.3--preview-2492068093",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet