rust-lang-ve / hilow

"Hilow" is a microblogging social feed where users are able to share they thoughts on different topics
Other
3 stars 4 forks source link

Endpoint | Login #13

Closed EstebanBorai closed 1 year ago

EstebanBorai commented 3 years ago

Implement the login endpoint which authenticates an user using either email or username. The backend must recognize which of the user's ids are provided and then authenticate the user in question.

When logging in, a JWT (JSON Web Token) must be issued and retrieved to the client, this JWT is used on every endpoint but the login endpoint (this endpoint) and the register endpoint (implemented on #12).

This issue depends on #11 and #12.