From 5a695f495c9f1ece3cdd625ae60efea5e49dff7d Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Tue, 31 Aug 2021 12:39:04 +0500 Subject: [PATCH] chore: login returns username --- src/auth/AuthManager.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/auth/AuthManager.ts b/src/auth/AuthManager.ts index 3fff897..ebed529 100644 --- a/src/auth/AuthManager.ts +++ b/src/auth/AuthManager.ts @@ -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 } }