refactor code for auth service
[arvados-workbench2.git] / src / services / auth-service / auth-service.ts
index 397b31938a74411a57b506646ba3dfe0af77a98f..edc6e24fce752b628a7573899f21af2e6063073b 100644 (file)
@@ -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