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

chore: addressing comments

This commit is contained in:
2021-06-10 12:08:16 +02:00
parent 00ba2957fb
commit 24496a997a
2 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ export class AuthManager {
this.userName = loginParams.username
let { isLoggedIn, loginForm } = await this.checkSession()
const { isLoggedIn, loginForm } = await this.checkSession()
if (isLoggedIn) {
await this.loginCallback()
@@ -51,7 +51,7 @@ export class AuthManager {
if (!loggedIn) {
if (isCredentialsVerifyError(loginResponse)) {
let newLoginForm = await this.getLoginForm(loginResponse)
const newLoginForm = await this.getLoginForm(loginResponse)
loginResponse = await this.sendLoginRequest(newLoginForm, loginParams)
}
@@ -70,7 +70,7 @@ export class AuthManager {
}
}
private async sendLoginRequest(loginForm: any, loginParams: any) {
private async sendLoginRequest(loginForm: {[key: string]: any}, loginParams: {[key: string]: any}) {
for (const key in loginForm) {
loginParams[key] = loginForm[key]
}