Interface requireAdminOrRecordAuth

Hierarchy

  • requireAdminOrRecordAuth
  • RequireAdminOrRecordAuth middleware requires a request to have a valid admin or record Authorization header set.

    You can further filter the allowed auth record collections by providing their names.

    This middleware is the opposite of [apis.RequireGuestOnly()].

    Parameters

    • Rest ...optCollectionNames: string[]

    Returns MiddlewareFunc

Generated using TypeDoc