hey guys im having issues with my code:
hey guys im having issues with my code:
using next pages router no ts,
my main issue is the api itself
i get a 400 error and tried it with postman no go





10 Replies
correct-apricot•2y ago
what do you see if you
console.log(data)
also, shouldn't the username, email and password be logged? Are then undefined?stormy-gold•2y ago
{
email: 'usuario@email.com',
username: 'For_Science_Greg',
password: 'passsword123'
}
correct-apricot•2y ago
huh. That's so weird haha
what happens when you log
!username
oh you can also enable type checking for this file without using typescript by adding // @ts-check to the top of a file.stormy-gold•2y ago
i stopped using prisma and switched to neon/serveless npm package works way better
now im only missing one thing and its this:


stormy-gold•2y ago
im trying to verify the password with becrypt for user to be able to login
rare-sapphire•2y ago
1. Why use a separate query to get the user password?
2. Can you provide the console for the above operation
rare-sapphire•2y ago

rare-sapphire•2y ago
try directory structure like this and then a code like this.
it might help
@streethippie466
stormy-gold•2y ago
Il get back to you later @Papa Johns im at work but im also not using ts
rare-sapphire•2y ago
same goes for ts