Skip to content

Commit 86afb46

Browse files
committed
wording
1 parent b8f9370 commit 86afb46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/4/en/part4d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ Modify adding new blogs so that it is only possible if a valid token is sent wit
422422

423423
[This example](/en/part4/token_authentication#limiting-creating-new-notes-to-logged-in-users) from part 4 shows taking the token from the header with the _getTokenFrom_ helper function in <i>controllers/blogs.js</i>.
424424

425-
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.
425+
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 assign it to the <i>token</i> field of the <i>request</i> object.
426426

427427
In other words, if you register this middleware in the <i>app.js</i> file before all routes
428428

0 commit comments

Comments
 (0)