node-authz-client
v1.4.0
Published
[PoC] Node Authz Client
Downloads
2,989
Readme
Description
A package for integration with authz service
Installation
You can install this package using npm:
npm install node-authz-client
Usage
import { Configuration, NodeAuthzClient } from 'node-authz-client';
(async () => {
const apiKey = 'abc';
const baseUrl = 'https://api.example.com';
const config = new Configuration(baseUrl, apiKey);
const nodeAuthzClient = new NodeAuthzClient(config);
const result = await nodeAuthzClient.createPermission({
name: 'kiki',
description: 'test',
});
console.log(result);
})();
Changelog
See CHANGELOG.md