can not return jwt on login

I try to make login with node.js and next.js but I can’t return token. I am working with mysql database. Here is my code. I try with console.logs and its stuck in part where i select from database. My …