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:
@@ -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,
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user