0.0.4 • Published 9 years ago

ioauth v0.0.4

Weekly downloads
12
License
-
Repository
-
Last release
9 years ago

ioauth

Implicit Open Auth client-side module for WordPress.com

> npm install ioauth

How to use

var iOAuth = require('ioauth')('<client-id>');

// get auth object
iOAuth.get(function(auth){
  // your token is here auth.access_token!
});

// clean stored token
iOAuth.clean();

// get stored token
var auth = iOAuth.token();

API

IOAuth(client_id, params)

Create a IOAuth instance with given client_id (String) and optional params object

params:

  • redirect_uri
  • response_type
  • scope

Test

  • Compile testing js file
> make test
  • Go to test/ folder

  • Run web server (using serve for instance)

  • Open index.html with a browser

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago