Skip to content

Commit

Permalink
Streamline verbiage
Browse files Browse the repository at this point in the history
Remove duplicate line
  • Loading branch information
MaoShizhong committed Nov 13, 2024
1 parent 0393138 commit 9d8206c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nodeJS/authentication/cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Depending on where you live, you may have come across cookie consent banners whe

The exact requirements depend on the regulations for the region (if any). In the case of EU GDPR for example, restrictions apply only to cookies that are not deemed "strictly necessary" to the website's function. A cookie used solely to keep someone logged into a website is an example of a strictly necessary cookie and so will not require user consent. Cookies used as part of user data collection, such as with Google analytics, are not strictly necessary and so would require user consent alongside clear explanations of what data will be collected and how they'd be used. Such users should also be allowed to withdraw consent and opt out of those cookies.

In this course, we will only be demonstrating the use of cookies for authentication purposes (strictly neccessary). Nonetheless, it's good to be generally aware of such regulations around cookies should you ever wish to use them for other purposes.
In this course, we will only be demonstrating the use of cookies for authentication purposes ("strictly neccessary"). Nonetheless, it's good to be generally aware of such regulations around cookies should you ever wish to use them for other purposes.

Check failure on line 52 in nodeJS/authentication/cookies.md

View workflow job for this annotation

GitHub Actions / Check for spelling errors

neccessary ==> necessary

### Assignment

Expand All @@ -63,10 +63,9 @@ In this course, we will only be demonstrating the use of cookies for authenticat

The following questions are an opportunity to reflect on key topics in this lesson. If you can't answer a question, click on it to review the material, but keep in mind you are not expected to memorize or master this knowledge.

- [What are cookies?](#introduction)
- [What are cookies?](#introduction)
- [Why might you need to set an expiry date on a cookie?](#expiresmaxage)
- [How can you prevent cookies from being read via client-side JavaScript, and why might you want to prevent that?](#httponly)
- [Why might you want to prevent client-side JavaScript from accessing a cookie and how would you implement this?](#httponly)

Check failure on line 68 in nodeJS/authentication/cookies.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Links have descriptive text labels

nodeJS/authentication/cookies.md:68 TOP001/descriptive-link-text Links have descriptive text labels [Expected text to not include the words "this" or "here". Use a more descriptive text that clearly conveys the purpose or content of the link.] [Context: "[Why might you want to prevent client-side JavaScript from accessing a cookie and how would you implement this?](#httponly)"] https://github.com/TheOdinProject/curriculum/blob/main/markdownlint/docs/TOP001.md
- [What does the "Secure" attribute do to a cookie?](#secure)
- [Under some regulations, what kinds of cookies would require user consent before they can be used?](#regulations-and-cookie-consent)

Expand Down

0 comments on commit 9d8206c

Please sign in to comment.