From 5fc334dd8b8f269e04f84c7073032077eea7d251 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Tue, 9 Feb 2021 17:57:01 +0500 Subject: [PATCH] chore: param 'insecure' removed --- src/SASViyaApiClient.ts | 4 +--- src/SASjs.ts | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index 3d3d5ab..4691a6f 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -663,13 +663,11 @@ export class SASViyaApiClient { * @param clientId - the client ID to authenticate with. * @param clientSecret - the client secret to authenticate with. * @param authCode - the auth code received from the server. - * @param insecure - this boolean tells adapter to ignore SSL errors. [Not Recommended] */ public async getAccessToken( clientId: string, clientSecret: string, - authCode: string, - insecure: boolean = false + authCode: string ): Promise { const url = this.serverUrl + '/SASLogon/oauth/token' let token diff --git a/src/SASjs.ts b/src/SASjs.ts index 06e158e..b800a6e 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -364,21 +364,18 @@ export default class SASjs { * @param clientId - the client ID to authenticate with. * @param clientSecret - the client secret to authenticate with. * @param authCode - the auth code received from the server. - * @param insecure - this boolean tells adapter to ignore SSL errors. [Not Recommended] */ public async getAccessToken( clientId: string, clientSecret: string, - authCode: string, - insecure: boolean = false + authCode: string ) { this.isMethodSupported('getAccessToken', ServerType.SasViya) return await this.sasViyaApiClient!.getAccessToken( clientId, clientSecret, - authCode, - insecure + authCode ) }