mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-10 13:50:05 +00:00
style: lint
This commit is contained in:
@@ -100,9 +100,7 @@ export class SASjsApiClient {
|
|||||||
* @param clientId - the client ID to authenticate with.
|
* @param clientId - the client ID to authenticate with.
|
||||||
* @param authCode - the auth code received from the server.
|
* @param authCode - the auth code received from the server.
|
||||||
*/
|
*/
|
||||||
public async getAccessToken(
|
public async getAccessToken(authCode: string): Promise<SASjsAuthResponse> {
|
||||||
authCode: string
|
|
||||||
): Promise<SASjsAuthResponse> {
|
|
||||||
return getAccessTokenForSasjs(this.requestClient, authCode)
|
return getAccessTokenForSasjs(this.requestClient, authCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,10 +118,7 @@ export class SASjsApiClient {
|
|||||||
* @param password - a string representing the password.
|
* @param password - a string representing the password.
|
||||||
* @param clientId - the client ID to authenticate with.
|
* @param clientId - the client ID to authenticate with.
|
||||||
*/
|
*/
|
||||||
public async getAuthCode(
|
public async getAuthCode(username: string, password: string) {
|
||||||
username: string,
|
|
||||||
password: string,
|
|
||||||
) {
|
|
||||||
return getAuthCodeForSasjs(this.requestClient, username, password)
|
return getAuthCodeForSasjs(this.requestClient, username, password)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user