1.0.0 • Published 8 years ago

rezi-auth-js v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

rezi-auth-js

A Rezi authentication wrapper for resource owner flow with JavaScript.

API documentation here: https://github.com/dezrez/DezrezCoreAPI

Website: https://www.dezrez.com

Installation

npm install rezi-auth-js --save

Quick start

Require rezi-auth-js

    var Rezi = require('rezi-auth-js');

    var rezi = new Rezi({
        grant_type: 'client_credentials', // required
        scopes: 'property_read', // required
        environment: 'uat', // required
        clientId: 'clientId', // required
        secret: 'clientSecret', // required
        authenticate: true // (Optional) If you want to automatically authenticate as part of instantiation, rezi must be globally scoped.
    });

You can also authenticate with a callback like this if authenticate is set to false;

    rezi.authenticate(function(err, credentials){
        // Credentials here including access_token.
    });

Issues

Email : richard.macarthy@dezrez.com

Website : www.dezrez.com

Release History

  • 1.0.0 Initial release