authhero 3.6.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38418,7 +38418,6 @@ export interface SeedOptions {
38418
38418
  /**
38419
38419
  * The audience URL for the tenant.
38420
38420
  * For the main/management tenant, defaults to `urn:authhero:management`.
38421
- * For child tenants, use `getTenantAudience(tenantId)` to generate `urn:authhero:tenant:{tenantId}`.
38422
38421
  */
38423
38422
  audience?: string;
38424
38423
  /**
@@ -38478,18 +38477,6 @@ export declare function seed(adapters: DataAdapters, options: SeedOptions): Prom
38478
38477
  * Used when managing tenants from the main tenant with org-scoped tokens.
38479
38478
  */
38480
38479
  export declare const MANAGEMENT_API_AUDIENCE = "urn:authhero:management";
38481
- /**
38482
- * Generates the audience URN for a specific tenant.
38483
- * @param tenantId - The tenant ID
38484
- * @returns The audience URN in the format `urn:authhero:tenant:{tenantId}`
38485
- */
38486
- export declare function getTenantAudience(tenantId: string): string;
38487
- /**
38488
- * Extracts the tenant ID from a tenant-specific audience URN.
38489
- * @param audience - The audience URN
38490
- * @returns The tenant ID if it's a tenant audience, null otherwise
38491
- */
38492
- export declare function extractTenantIdFromAudience(audience: string): string | null;
38493
38480
  /**
38494
38481
  * This registeres the authentication middleware. As it needs to read the OpenAPI definition, it needs to have a reference to the app.
38495
38482
  * @param app