Auth Service JS Client
Library for Auth JWT Service.
How to contribute
- clone repository
- install dependencies
npm install
- use
npm run test:watch
to run test with--watch
mode - use
npm run build
to build library
Please, pay special attention: as far as we have a lack of abilities
to publish private npm
package for free to use auth-service-js
please run npm link ../auth-service-js
in your main project.
How to use
Autentificate user by Bitrix cookies
/*eslint-disable */; // initialize client with http client and base url, i.e. http://localhost:3000const service = ;// get JWT tokenservice;/* eslint-enable */
Refresh token
/*eslint-disable */; // initialize client with http client and base url, i.e. http://localhost:3000const service = ;// refresh JWT tokenservice;/* eslint-enable */