Authentication API
Verify email config
injected service use to handle the user related operations
injected logger used to handle the logging
request context [headers, body, params, query]. Note:
body
is required201 Status Created
This handler will create user by applying the following steps in sequence:
Create user (userService.createUser)
Check verify email configuration enabled, if yes continue next step else go to step 6
Get email template config based on typeId
Generate onetime token (authAPI.generateOnetimeToken)
Send verification email (verifyEmailConfig.mailService.sendMail)
Return created user
Generated using TypeDoc
Create user handler