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

chore: login returns username

This commit is contained in:
Saad Jutt
2021-08-31 12:39:04 +05:00
parent ab8643a89a
commit 5a695f495c

View File

@@ -30,6 +30,7 @@ export class AuthManager {
password: string password: string
): Promise<{ ): Promise<{
isLoggedIn: boolean isLoggedIn: boolean
username: string
}> { }> {
const loginParams = { const loginParams = {
_service: 'default', _service: 'default',
@@ -45,7 +46,8 @@ export class AuthManager {
this.userName = userName! this.userName = userName!
return { return {
isLoggedIn isLoggedIn,
username: this.userName
} }
} else { } else {
this.logOut() this.logOut()
@@ -83,7 +85,8 @@ export class AuthManager {
} else this.userName = '' } else this.userName = ''
return { return {
isLoggedIn isLoggedIn,
username: this.userName
} }
} }