Skip to content

Commit

Permalink
Merge pull request #3233 from myverdict/patch-17
Browse files Browse the repository at this point in the history
Update part4d.md
  • Loading branch information
mluukkai authored Oct 31, 2023
2 parents b70918e + c64f2a2 commit d501a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/4/en/part4d.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ Modify adding new blogs so that it is only possible if a valid token is sent wit

#### 4.20*: bloglist expansion, step8

[This example](/en/part4/token_authentication) from part 4 shows taking the token from the header with the _getTokenFrom_ helper function.
[This example](/en/part4/token_authentication) from part 4 shows taking the token from the header with the _getTokenFrom_ helper function in <i>controllers/blogs.js</i>.

If you used the same solution, refactor taking the token to a [middleware](/en/part3/node_js_and_express#middleware). The middleware should take the token from the <i>Authorization</i> header and place it into the <i>token</i> field of the <i>request</i> object.

Expand Down

0 comments on commit d501a54

Please sign in to comment.