2.0.2 • Published 6 years ago

solinftec-auth-lib-test v2.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Library to helper solinftec-auth-api use.

Install

    npm i solinftec-auth-lib-test --save

Usage

import

    import Auth from 'solinftec-auth-lib'

    let helper = new Auth();

    helper.setOrigin('node');
    
    // **optional
    // helper.setUrl('base_url');

get token

    let form = {
                "login":"login",
                "password":"password",
                "owner":"owner"
                }

    helper.getToken(form, 'base_url'**optional)
          .then(token => console.log(token))

check token

    helper.check('hash-token', 'base_url'**optional)
          .then(result => console.log(result))

clarify token

    helper.clarify('hash-token', 'base_url'**optional)
          .then(result => console.log(result))

refresh token

    helper.refresh('hash-token', 'base_url'**optional)
          .then(result => console.log(result))

get endpoints

    helper.endpoint('hash-token', 'base_url'**optional)
          .then(result => console.log(result))
2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago