1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

fix(*): fix invalid typing

This commit is contained in:
Saad Jutt
2021-02-05 19:03:20 +05:00
parent 851b6bc273
commit a10e4ec264

View File

@@ -670,7 +670,7 @@ export class SASViyaApiClient {
clientSecret: string,
authCode: string,
insecure: boolean = false
) {
): Promise<SasAuthResponse> {
const url = this.serverUrl + '/SASLogon/oauth/token'
let token
if (typeof Buffer === 'undefined') {
@@ -694,14 +694,14 @@ export class SASViyaApiClient {
}
const authResponse = await this.requestClient
.post<SasAuthResponse>(
.post(
url,
formData,
undefined,
'multipart/form-data; boundary=' + (formData as any)._boundary,
headers
)
.then((res) => res.result)
.then((res) => res.result as SasAuthResponse)
return authResponse
}