Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in Flex UI 1.31.1 related to longHandler.on undefined #32

Open
dahamilton-twilio opened this issue Jun 16, 2022 · 0 comments
Open

Comments

@dahamilton-twilio
Copy link

Flex.Manager.store.getState().flex.session.loginHandler is no longer supported >=Flex UI 1.31.1

Suggested refactor in SyncClient.js is:

  constructor(manager) {
    this.#client = new TwilioSyncClient(manager.user.token);

    manager.events.addListener("tokenUpdated", (tokenPayload) => {
      logger.log("Refreshing SyncClient Token");
      this.#client.updateToken(tokenPayload.token);
    });
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant