UNPKG

@twin.org/api-tenant-processor

Version:

API Tenant Processor for converting and api key to a tenant id.

42 lines (21 loc) 471 B
# Class: TenantIdHelper Helper class for tenant id related operations. ## Constructors ### Constructor > **new TenantIdHelper**(): `TenantIdHelper` #### Returns `TenantIdHelper` ## Methods ### generateTenantId() > `static` **generateTenantId**(): `string` Generates a new tenant ID. #### Returns `string` A new tenant ID. *** ### generateApiKey() > `static` **generateApiKey**(): `string` Generates a new API Key. #### Returns `string` A new API Key.