Class AccessKeysService

Hierarchy

  • AccessKeysService

Constructors

Properties

_cacheService: CacheService
_runtimeConfig: RuntimeConfig

Methods

  • Retrieves access keys for the current user context.

    Access keys determine what data the user is authorized to access. This method supports cache-backed retrieval for efficiency.

    Returns

    A promise that resolves with a list of access keys the user has.

    Parameters

    Returns Promise<string[]>

  • Invalidates the cache for a principal's access keys.

    This effectively forces a re-fetch from the database on subsequent requests. This is useful when the access rights of a principal change.

    Returns

    A promise that resolves when the cache invalidation is complete.

    Parameters

    • tenant: string

      The tenant identifier.

    • id: string

      The unique identifier for the principal (user).

    Returns Promise<void>

Generated using TypeDoc