2.1.3 • Published 3 years ago

auth-sdk-ts v2.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago