Janrain Examples

Basic examples of token URLs that can be used with Janrain's Social Login service.

No warranty, use at your own risk.

Janrain Social Login Widget Examples

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:

  1. The first thing you'll want to do is install Node.js.
  2. Next, open a terminal and run the following commands:
  3. git clone git@github.com:janrain/Janrain-Sample-Code.git
  4. cd Janrain-Sample-Code/widget-examples
  5. npm install
  6. In server.js, replace _API_KEY_ with your Janrain API key.
  7. 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.
  8. Now start the server with node server.js
  9. That's it! You should now be able to access the examples at http://localhost:3000.

Third Party Examples

Haskell

Perl