Skip to content

Instantly share code, notes, and snippets.

@alisnic
Created February 23, 2018 09:34
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 alisnic/23246c12b104d3ddf6b10b9c011e6b02 to your computer and use it in GitHub Desktop.
Save alisnic/23246c12b104d3ddf6b10b9c011e6b02 to your computer and use it in GitHub Desktop.
<html>
<head>
</head>
<body>
<script type="text/javascript">
window.addEventListener("message", function(event) {
console.log(JSON.parse(event.data))
}
)
console.log("subscribed to saltedge connect notification")
</script>
<!--
YOUR_TOKEN should be the value that you received from calling https://docs.saltedge.com/reference/#tokens-create.
Plase make sure that you are passing javascript_callback_type: "post_message" for this requests. In this case
the connect window will notify that parent frame when Login status is updated.
/-->
<iframe width=400 height=600 src="https://www.saltedge.com/connect?token=YOUR_TOKEN" />
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment