mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-05 03:30:05 +00:00
fix(*): fix invalid typing
This commit is contained in:
@@ -670,7 +670,7 @@ export class SASViyaApiClient {
|
|||||||
clientSecret: string,
|
clientSecret: string,
|
||||||
authCode: string,
|
authCode: string,
|
||||||
insecure: boolean = false
|
insecure: boolean = false
|
||||||
) {
|
): Promise<SasAuthResponse> {
|
||||||
const url = this.serverUrl + '/SASLogon/oauth/token'
|
const url = this.serverUrl + '/SASLogon/oauth/token'
|
||||||
let token
|
let token
|
||||||
if (typeof Buffer === 'undefined') {
|
if (typeof Buffer === 'undefined') {
|
||||||
@@ -694,14 +694,14 @@ export class SASViyaApiClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const authResponse = await this.requestClient
|
const authResponse = await this.requestClient
|
||||||
.post<SasAuthResponse>(
|
.post(
|
||||||
url,
|
url,
|
||||||
formData,
|
formData,
|
||||||
undefined,
|
undefined,
|
||||||
'multipart/form-data; boundary=' + (formData as any)._boundary,
|
'multipart/form-data; boundary=' + (formData as any)._boundary,
|
||||||
headers
|
headers
|
||||||
)
|
)
|
||||||
.then((res) => res.result)
|
.then((res) => res.result as SasAuthResponse)
|
||||||
|
|
||||||
return authResponse
|
return authResponse
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user