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.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
Probably the auth token and user info
Yeah, I've implemented the JWT token functionality on the server, need to fetch the same and set in cookie