Skip to content

Commit 973251c

Browse files
committed
Rename lesson file
"Session-based authentication" is a more appropriate title for the lesson than just "Sessions", given that sessions are not exclusively used for auth purposes.
1 parent 77d56e1 commit 973251c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodeJS/authentication/sessions.md renamed to nodeJS/authentication/session_based_authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ app.get("/", checkAuthenticated, (req, res) => {
310310
});
311311
```
312312
313-
If you serve your app and go to the site on localhost, you should be redirected to `/login` straightaway since you won't yet have a session cookie. You should already have a user in your database, so log in with your credentials and see your personalized greeting!
313+
If you serve your app and go to the site on localhost, you should be redirected to `/login` straight away since you won't yet have a session cookie. You should already have a user in your database, so log in with your credentials and see your personalized greeting!
314314
315315
We can add our `checkAuthenticated` middleware to any routes that we need authenticate, or even as router-level middleware for example. You can of course customize this function however you wish - the code shown here is just for our example app.
316316

0 commit comments

Comments
 (0)