mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-09 13:30:04 +00:00
chore: login returns username
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user