1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-06 04:00:05 +00:00

Merge branch 'axios-fetch' of https://github.com/sasjs/adapter into axios-fetch

This commit is contained in:
Krishna Acondy
2021-02-10 08:19:51 +00:00
2 changed files with 3 additions and 8 deletions

View File

@@ -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<SasAuthResponse> {
const url = this.serverUrl + '/SASLogon/oauth/token'
let token