Ergo-Tasks / ergo-api

Érgo Express rest api
0 stars 0 forks source link

Create user authentication / sign up endpoints #2

Closed KieranVieira closed 3 years ago

KieranVieira commented 3 years ago

Tech:

Instructions:

reevesabbas commented 3 years ago

Outline:

reevesabbas commented 3 years ago

second POST route:

reevesabbas commented 3 years ago

auth middlware:

reevesabbas commented 3 years ago

Note to KR: Error handling is top priority, must handle all cases. Imagine third party looking at code, they need to know what is expecting at certain points in the code for it to work. In some cases error handling is kept vague to prevent sensitive information from being gathered (logging in messages)

kaydengrant commented 3 years ago

GET route:

KieranVieira commented 3 years ago

GET route:

  • use req.params to find user (since already authed by middleware)
  • response with json body of user information

You sure about that?

KieranVieira commented 3 years ago

Lets circle back on this in T minus 3 hours

reevesabbas commented 3 years ago

GET route:

  • use req.params to find user (since already authed by middleware)
  • response with json body of user information

You sure about that?

WHAT DOES THIS MEAN?

reevesabbas commented 3 years ago

PUT req: