1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +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
): Promise<{
isLoggedIn: boolean
username: string
}> {
const loginParams = {
_service: 'default',
@@ -45,7 +46,8 @@ export class AuthManager {
this.userName = userName!
return {
isLoggedIn
isLoggedIn,
username: this.userName
}
} else {
this.logOut()
@@ -83,7 +85,8 @@ export class AuthManager {
} else this.userName = ''
return {
isLoggedIn
isLoggedIn,
username: this.userName
}
}