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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user