Basic examples of token URLs that can be used with Janrain's Social Login service.
No warranty, use at your own risk.
You can find example implementations of the Janrain Social Login widget in the
widget-examples
folder, along with a tiny Node server and token url
implementation. To see the examples in action, do the following:
- The first thing you'll want to do is install Node.js.
- Next, open a terminal and run the following commands:
git clone git@github.com:janrain/Janrain-Sample-Code.git
cd Janrain-Sample-Code/widget-examples
npm install
- In
server.js
, replace_API_KEY_
with your Janrain API key. - In
application_domain.js
, replace_APPLICATION_DOMAIN_
with your Janrain Application Domain, which you can find by visiting the settings page on the Janrain Dashboard. - Now start the server with
node server.js
- That's it! You should now be able to access the examples at http://localhost:3000.