isAuthenticated() {
          if (this._useFakes) {
            console.log('AUTH: isAuthenticated() faked as true');
            return true;
          }

          // console.log('AUTH: Calling ADAL "getCachedToken()"...');

          // getCachedToken will only return a valid, non-expired token
          this.appToken = this._context.getCachedToken(this._config.clientId);
          if (this.appToken) {
            console.log('AUTH: Acquire App Token Succeeded');
            return true;
          }

          console.log('AUTH: Acquire App Token Failed');
          this.clearUserProfile();
          return false;
        }
/**
         * @return {Boolean} Indicates if there is a valid, non-expired access token present in localStorage
         */
@return {Boolean} Indicates if there is a valid, non-expired access token present in localStorage
@return { Boolean } Indicates if there is a valid non - expired access token present in localStorage
isAuthenticated() {
          if (this._useFakes) {
            console.log('AUTH: isAuthenticated() faked as true');
            return true;
          }
          this.appToken = this._context.getCachedToken(this._config.clientId);
          if (this.appToken) {
            console.log('AUTH: Acquire App Token Succeeded');
            return true;
          }
          console.log('AUTH: Acquire App Token Failed');
          this.clearUserProfile();
          return false;
        }
isAuthenticated ( ) { if ( this . _useFakes ) { console . log ( 'AUTH: isAuthenticated() faked as true' ) ; return true ; } this . appToken = this . _context . getCachedToken ( this . _config . clientId ) ; if ( this . appToken ) { console . log ( 'AUTH: Acquire App Token Succeeded' ) ; return true ; } console . log ( 'AUTH: Acquire App Token Failed' ) ; this . clearUserProfile ( ) ; return false ; }
@return {Boolean} Indicates if there is a valid, non-expired access token present in localStorage
@return { Boolean } Indicates if there is a valid non - expired access token present in localStorage
// console.log('AUTH: Calling ADAL "getCachedToken()"...'); // getCachedToken will only return a valid, non-expired token