ImpSdk.authentication.getLoggedInUser

Developed by Meysam Ghaderyan
ImpSdk.authentication.showLogin(containerId string, callbackUrl string)
Name Description
authentication.getLoggedInUser() returns the logged in user stored in local storage

Example:

var user = ImpSdk.authentication.getLoggedInUser(); // { "id": 11, "name": "IMP DEV", "pictureUrl": "http://someurl.com", "provider": "macys" }

Demo