Steps:
div and give it an id.authentication.showLogin in your desired event handler and pass
it the required parameters shown below.string, callbackUrl string)| Name | Description |
|---|---|
| authentication.showLogin(containerId, callbackUrl) | Opens a modal and mounts it on element with containerId in which you can log in with Facebook or Macys. Redirects back tp callbackUrl after logging in. callbackUrl is most probably the home page of the campaign. This url must be registered per campaign environment. You need to contact IMP team for this to create a JIRA ticket. |
Example:
ImpSdk.authentication.showLogin('myContainer', 'http://wwww.my-site.com');