Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Options

Optional configuration for the Oso.constructor.

Hierarchy

  • Options

Index

Properties

Optional equalityFn

equalityFn: EqualityFn

Optional forbiddenError

forbiddenError: CustomError

Optionally override the "forbidden" error class thrown by the authorize* methods. Defaults to ForbiddenError.

Optional notFoundError

notFoundError: CustomError

Optionally override the "not found" error class thrown by authorize. Defaults to NotFoundError.

Optional readAction

readAction: unknown

The action used by the authorize method to determine whether an authorization failure should raise a NotFoundError or a ForbiddenError.