authentication configurations
authentication secrets
injected function use to authenticate the user token
injected service use to handle the organization related operations. Can be null.
which request field to check
unique identifier of the entity for follower
type of the entity for follower eq. user, organization
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This validator will check if followerId is the login user by applying the following steps in sequence:
Authenticate user token (authenticate)
Get followerId and followerType from context
Check if followerType is user, then check if followerId is the login user
Check if followerType is organization, then check if followerId is belong to the login user (organizationAPI.getUserOrganizations)
401 NBError Unauthorized
403 NBError Forbidden
500 NBError Internal Server Error
Generated using TypeDoc
Has valid followerId validator