title: Getting response but not returning
body: <p>I am getting ERR_HTTP_HEADERS_SENT cause of this issue. What is wrong with this code?</p>
  <pre><code>.then((userDetails: any) =&gt; {
                  userDetails.role.forEach((singleRole) =&gt; {
                    if (singleRole.name === 'admin') {
                      console.log('here')
                      userDetails.userToken = userToken;
                      return res.status(200).json({
                        status: 'OK',
                        resultData: userDetails,
                      });
                    }
                  });
                  user.userToken = userToken;
                  logger.info('Logged in successfully....');
                  return res.status(200).json({
                    status: 'OK',
                    resultData: user,
                  });
                })
  </code></pre>