2.1.3 • Published 2 years ago
auth-sdk-ts v2.1.3
Auth as a Service SDK
Typescript SDK for Authentication as a Service.
Installation
To get started run:
npm install auth-sdk-ts
Usage/Examples
import { AuthClient } from 'auth-sdk-ts';
const client = new AuthClient({
baseUrl: "http://localhost:8080/v1",
});
const { role, policy, permission } = client;
const roles = await role.getAll();
const permissions = await permission.getAll();
const policies = await policy.getAll();
const newRole = await role.create({ name: "test" });
const newPermission = await permission.create({ resource: "test", action: "read" });
const newPolicy = await policy.create({ name: "test", kind: "ALLOW" });
2.1.3
2 years ago
2.1.2
2 years ago
2.1.1
2 years ago
2.1.0
2 years ago
1.2.9
2 years ago
1.2.8
2 years ago
1.2.7
2 years ago
1.2.6
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago