Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CaslAbilityFactory<TAbility>

A class interface that generate the CASL ability from the request.

Type parameters

  • TAbility: AnyAbilityLike = PureAbility<any, any>

Hierarchy

  • CaslAbilityFactory

Index

Methods

  • Extract the ability from the HTTP request.

    Parameters

    • request: unknown

      The HTTP request, usually from express or fastify depending on your HTTP adapter.

    Returns MaybeAsyncValue<TAbility>

    the ability for the user.

Generated using TypeDoc