Skip to content

lesson notes and mini assignment#26

Open
janauhrich wants to merge 2 commits intopce-uw-jscript400:masterfrom
janauhrich:master
Open

lesson notes and mini assignment#26
janauhrich wants to merge 2 commits intopce-uw-jscript400:masterfrom
janauhrich:master

Conversation

@janauhrich
Copy link

No description provided.

* **Question:** Why are we making our route `POST /api/signup` as opposed to `POST /api/users`?

* **Your Answer:**
* **Your Answer:** it's more official - gives the user an idea of the action they are taking.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but also the process of signing up is also slightly different than just creating a user. There could be an instance where you have both, for example.

  1. One for users to sign up
  2. One for admin to create new users

* **Question:** Which of our current routes will require us to use the `jsonwebtoken` library? (i.e. When will we be creating or decoding JWTs?)

* **Your Answer:**
* **Your Answer:** the login route
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And signup, if we want to return a token there too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants