Skip to content

Permify/permify-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

permify-typescript

Typescript Client for Permify which is an open source authorization service for creating fine-grained and scalable authorization systems.

This Typescript package is automatically generated by the OpenAPI Generator project.

Requirements.

  • Typescript
  • npm

Installation

To include the SDK in your project, install the package from npm:

npm i permify-typescript

Getting Started

import * as permify from "permify-typescript";

const configuration = new permify.Configuration({
    basePath: "http://localhost:3476",
    headers: {
        'Authorization': "Bearer ***"
    }
})

const apiInstance = new permify.TenancyApi(configuration);

let tenantId = "tenant_id_example"; 

apiInstance.tenantsCreate({
    body: {
        id: tenantId,
        name: "Tenant 1"
    }
}).then((data) => {
    console.log('API called successfully. Returned data: ' + data.tenant);
}).catch((error) => console.error(error));

Author

[email protected]

About

Permify Typescript Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published