userRolesFromApiToken() {
          if (this._useFakes) {
            return ['FakeRoleA', 'FakeRoleB'];
          }

          try {
            let decodedToken = jwt.decode(this.apiToken);
            let roles = decodedToken.roles || [];
            // console.log('AUTH: Read user roles from API token'); //, ctx.app.$helpers.stringifyObj(roles));
            return roles;
          } catch (e) {
            console.log('AUTH: Error reading API Token', e);
          }
        }
/**
         * @return {Array} An array with the user's roles found in the apiToken
         */
@return {Array} An array with the user's roles found in the apiToken
@return { Array } An array with the user ' s roles found in the apiToken
userRolesFromApiToken() {
          if (this._useFakes) {
            return ['FakeRoleA', 'FakeRoleB'];
          }
          try {
            let decodedToken = jwt.decode(this.apiToken);
            let roles = decodedToken.roles || [];
            return roles;
          } catch (e) {
            console.log('AUTH: Error reading API Token', e);
          }
        }
userRolesFromApiToken ( ) { if ( this . _useFakes ) { return [ 'FakeRoleA' , 'FakeRoleB' ] ; } try { let decodedToken = jwt . decode ( this . apiToken ) ; let roles = decodedToken . roles || [ ] ; return roles ; } catch ( e ) { console . log ( 'AUTH: Error reading API Token' , e ) ; } }
@return {Array} An array with the user's roles found in the apiToken
@return { Array } An array with the user ' s roles found in the apiToken
// console.log('AUTH: Read user roles from API token'); //, ctx.app.$helpers.stringifyObj(roles));