1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-04 03:00:05 +00:00

fix: deprecating sasjs client id

This commit is contained in:
2022-05-09 13:26:17 +02:00
parent 72ed5e3fab
commit c243f25477
6 changed files with 12 additions and 30 deletions

View File

@@ -92,14 +92,9 @@ export class AuthManager {
*/
public async logInSasjs(
username: string,
password: string,
clientId: string
password: string
): Promise<LoginResult> {
const isLoggedIn = await this.sendLoginRequestSasjs(
username,
password,
clientId
)
const isLoggedIn = await this.sendLoginRequestSasjs(username, password)
.then((res) => {
this.userName = username
this.requestClient.saveLocalStorageToken(
@@ -215,18 +210,13 @@ export class AuthManager {
return loginResponse
}
private async sendLoginRequestSasjs(
username: string,
password: string,
clientId: string
) {
private async sendLoginRequestSasjs(username: string, password: string) {
const authCode = await getAuthCodeForSasjs(
this.requestClient,
username,
password,
clientId
password
)
return getAccessTokenForSasjs(this.requestClient, clientId, authCode)
return getAccessTokenForSasjs(this.requestClient, authCode)
}
/**
* Checks whether a session is active, or login is required.