DEV Community

loading...

Day 27 of 365 Days of Code

Mehak Saini
Java Developer by profession React enthusiast Currently exploring Blockchain
・1 min read

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.

Discussion (2)

Collapse
ceoshikhar profile image
Shikhar Sharma

Probably the auth token and user info

Collapse
mehaksaini11 profile image
Mehak Saini Author

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