JSPM

  • Created
  • Published
  • Downloads 880037
  • Score
    100M100P100Q196331F
  • License MIT

Client library for the Auth0 platform

Package Exports

  • auth0

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (auth0) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Node.js client library for the Auth0 platform.

Instalation

npm install auth0

Usage

var Auth0 = require('auth0');

var client = new Auth0({
  clientID:     'your-client-id',
  clientSecret: 'your-client-secret'
});

getConnections(callback)

client.getConnections(function (err, connections){
  //.....
});

createConnection(callback)

var myNewConnection =  {
    "name": "a-new-connection",
    "strategy": "google-oauth2",
    "client_id": "aaa",
    "options": {
      "client_secret": "aadsadsadsa",
      "sites": true,
      "spreadsheets": true,
      "url_shortener": true,
      "webmaster_tools": true
    }
  };

client.createConnection(myNewConnection, function (err) {
  //.....
});

getConnection(id, callback)

client.getConnection(function (err, connection){
  //.....
});