The target entity that needs to be checked to belong to the user.
Optional
targetIdParamKey: stringThe key of the id path parameter in the endpoint.
Optional
targetUserIdKey: keyof InstanceType<T>The key on the target, that defines to which user it belongs.
Optional
allowedStrategies: AuthStrategiesThe auth strategies that are allowed to be used to check that.
Marks an endpoint to be only reachable when the logged in user belongs to the requested resource somehow.