DEV Community

Mehak Saini
Mehak Saini

Posted on

Day 27 of 365 Days of Code

Implemented login functionality for my clone of twitter. Used graphql to make api call from react client to apollo server and passed the login form data. The data was then verified by using findOne and bcrypt.compare method. Need to work on sending an appropriate message to the client on successful login.

Top comments (2)

Collapse
 
ceoshikhar profile image
Shikhar

Probably the auth token and user info

Collapse
 
mehaksaini11 profile image
Mehak Saini

Yeah, I've implemented the JWT token functionality on the server, need to fetch the same and set in cookie