diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index c5581cd..385f358 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -674,13 +674,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 7883b78..a09c626 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -378,21 +378,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 ) }