Injected service used to handle the user-related operations.
Injected authentication API for deleting refresh tokens.
Configuration for deactivation email.
authSecrets - Auth Secrets authenticate - Authentication function
Injected logger for logging.
Request context containing headers, body, params, and query.
body.userId
is required.
204 Status No Content
This handler will lock the user by applying the following steps in sequence:
Error - When userId is not defined.
Error - When deactivateUserEmailConfig is not defined.
Error - When no mail service is provided in the configuration.
Error - When the user has no email.
Error - When failed to send the deactivation email.
Generated using TypeDoc
Deactivate user handler