feat: added login to people
Compare changes
Files
13
src/login/jwt.strategy.ts
0 → 100644
+ 17
− 0
\ No newline at end of file
Created by: Nabilsenko
Test using the endpoint: POST/login
Example of JSON object { "email" : "nabil", "passwordHash" : "gGmvD.U1!" }
The returned token must be stored somewhere in the front. It must be sent in the bearer of each request (for now, only in GET/people & GET/people/{id}).