Interface requireAdminOrOwnerAuth

Hierarchy

  • requireAdminOrOwnerAuth
  • RequireAdminOrOwnerAuth middleware requires a request to have a valid admin or auth record owner Authorization header set.

    This middleware is similar to [apis.RequireAdminOrRecordAuth()] but for the auth record token expects to have the same id as the path parameter ownerIdParam (default to "id" if empty).

    Parameters

    • ownerIdParam: string

    Returns MiddlewareFunc

Generated using TypeDoc