DEV Community

Discussion on: Graphql server authentication with JWT

Collapse
 
drkreso profile image
Kresimir Bojcic • Edited

UserInput --> RegisterUserInput

const match = bcrypt.compare(password, user.password); --> const match = await bcrypt.compare(password, user.password);

Otherwise you always get a token :)

Good tutorial, tnx.

Collapse
 
ahmdtalat profile image
Ahmd Talat

thank you