injected API service use to handle the user related operations
injected service use to handle the two factor auth related operations
injected logger used to handle the logging
request context [body].
200 Status Ok
{
data: {
token: string,
},
status: statusCode,
}
This handler will resend a two factor authentication code by applying the following steps in sequence:
Get token from request body
Get user info and invalidate token (twoFactorAuthService.invalidateToken)
Generate 2FA code if (twoFactorAuthService.generateCode)
Send 2FA code to user (twoFactorAuthService.sendMail)
Return the response
400 NBError invalid body
401 NBError invalid token
404 NBError not found
500 NBError Internal Server Error
Generated using TypeDoc
Resend two factor code handler