Skip to main content

Creating Tenants

To create tenants in Warrant whenever a tenant is created in your application, add the following code to your app wherever tenants are created:

warrantClient
.createTenant(tenant.id)
.then((newTenant) => console.log(newTenant))
.catch((error) => console.log(error));