authentication secrets
which field to get the followerId and followerType from context
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This validator will authenticate the followerId by applying the following steps in sequence:
Authenticate the user token
Get followerId and followerType from context
Check if the followerType is user
Check if the followerId is the same as the userId in the user token
401 NBError Unauthorized
403 NBError Forbidden
Generated using TypeDoc
Validate followerId validator