From: Janicki Artur Date: Thu, 29 Nov 2018 11:16:22 +0000 (+0100) Subject: refactor code for auth service X-Git-Tag: 1.3.0~5^2~1 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/d2f157cc1d05e8385fe3771447cd8b1412f2f5dd refactor code for auth service Feature #14503_keep_services Arvados-DCO-1.1-Signed-off-by: Janicki Artur --- diff --git a/src/services/auth-service/auth-service.ts b/src/services/auth-service/auth-service.ts index 397b3193..edc6e24f 100644 --- a/src/services/auth-service/auth-service.ts +++ b/src/services/auth-service/auth-service.ts @@ -59,8 +59,8 @@ export class AuthService { const email = localStorage.getItem(USER_EMAIL_KEY); const firstName = localStorage.getItem(USER_FIRST_NAME_KEY); const lastName = localStorage.getItem(USER_LAST_NAME_KEY); - const uuid = localStorage.getItem(USER_UUID_KEY); - const ownerUuid = localStorage.getItem(USER_OWNER_UUID_KEY); + const uuid = this.getUuid(); + const ownerUuid = this.getOwnerUuid(); const isAdmin = this.getIsAdmin(); return email && firstName && lastName && uuid && ownerUuid