Skip to content

Instantly share code, notes, and snippets.

@wyattjoh
Created August 18, 2017 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wyattjoh/5b9af0d7daaeb01095e8f393141bfcf1 to your computer and use it in GitHub Desktop.
Save wyattjoh/5b9af0d7daaeb01095e8f393141bfcf1 to your computer and use it in GitHub Desktop.
How to trigger login actions to occur on the parent?

How to trigger login actions to occur on the parent?

  1. Disable the talk-plugin-auth plugin.
  2. Listen for the action.SHOW_SIGNIN_DIALOG event and trigger your signin behaviour, potentially showing a new ui via another plugin in Talk or triggering a redirect on the parent page.
  3. When the page returns (and the login is done) call embed.login() optionally with a token as embed.login(token).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment