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

chore: removing clientid

This commit is contained in:
2022-05-09 16:05:50 +02:00
parent a4cd320272
commit f7bd63ee7f
2 changed files with 1 additions and 3 deletions

View File

@@ -486,7 +486,7 @@ export default class SASjs {
]) ])
if (this.sasjsConfig.serverType === ServerType.Sasjs) if (this.sasjsConfig.serverType === ServerType.Sasjs)
return await this.sasJSApiClient!.getAccessToken(clientId, authCode) return await this.sasJSApiClient!.getAccessToken(authCode)
return await this.sasViyaApiClient!.getAccessToken( return await this.sasViyaApiClient!.getAccessToken(
clientId, clientId,

View File

@@ -101,7 +101,6 @@ export class SASjsApiClient {
* @param authCode - the auth code received from the server. * @param authCode - the auth code received from the server.
*/ */
public async getAccessToken( public async getAccessToken(
clientId: string,
authCode: string authCode: string
): Promise<SASjsAuthResponse> { ): Promise<SASjsAuthResponse> {
return getAccessTokenForSasjs(this.requestClient, authCode) return getAccessTokenForSasjs(this.requestClient, authCode)
@@ -124,7 +123,6 @@ export class SASjsApiClient {
public async getAuthCode( public async getAuthCode(
username: string, username: string,
password: string, password: string,
clientId: string
) { ) {
return getAuthCodeForSasjs(this.requestClient, username, password) return getAuthCodeForSasjs(this.requestClient, username, password)
} }