Code Sample

This sample is not meant to be fully functional code. For brevity's sake, only the code required for demonstrating the API call itself is presented.

To run the code on your own domain, add your Gigya API key to the gigya.js URL. A Gigya API key can be obtained on the Site Dashboard page on Gigya's website. Please make sure that the domain from which you are loading the page is the same domain name that you used for generating the API key.

In some cases it is necessary to connect/login the user to a provider? prior to calling the API method. You can learn more in the Social Login guide.