ImpSdk.authentication.showLogin

Developed by Meysam Ghaderyan

Steps:

  1. In the html page where the show-login component will sit, create an empty div and give it an id.
  2. In the main script file, call the function authentication.showLogin in your desired event handler and pass it the required parameters shown below.
ImpSdk.authentication.showLogin(containerId 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');

Demo