sanscript-tech / medical-emergency-flutter-node

https://sanscript.tech
GNU General Public License v3.0
14 stars 18 forks source link

Create a route for logging a user #21

Closed BhavyaaArora-08 closed 4 years ago

BhavyaaArora-08 commented 4 years ago

@route POST api/users/login @desc Login user @access Public

Arnab-31 commented 4 years ago

Can I work on this issue?

BhavyaaArora-08 commented 4 years ago

Yes @Arnab-31 Thanks for contributing.

BhavyaaArora-08 commented 4 years ago

Are you working on the issue? @Arnab-31

Arnab-31 commented 4 years ago

Yes, I will send a PR soon.

Arnab-31 commented 4 years ago

Once a user logs in ,should I send a cookie with the jwt token stored in it like we do in web apps or is it needed to be done in a different way?

BhavyaaArora-08 commented 4 years ago

Check the response format I have sent in the group. Simply return the token.

If there is anything you want to ask about jsonwebtoken, let me know I can send you resources you can refer to.