From 8d203b8df4912257fdfa7ed013599808a0910bf7 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Wed, 27 Jan 2021 15:47:15 +0500 Subject: [PATCH] chore: annotation added --- src/SASjs.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/SASjs.ts b/src/SASjs.ts index e93473d..c57c870 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -386,6 +386,13 @@ export default class SASjs { return await this.sasViyaApiClient!.getAuthCode(clientId) } + /** + * Exchanges the auth code for an access token for the given client. + * @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,