Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lesson: Cookies #28974

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

MaoShizhong
Copy link
Contributor

@MaoShizhong MaoShizhong commented Oct 19, 2024

Because

Part of the Node Revamp milestone 2 - new lesson on Cookies.

This PR

  • Adds a new Cookies lesson to the Node.js course - Authentication section.

Issue

Closes #28848

Additional Information

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project curriculum contributing guide
  • The title of this PR follows the location of change: brief description of change format, e.g. Intro to HTML and CSS lesson: Fix link text
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section
  • If any lesson files are included in this PR, they have been previewed with the Markdown preview tool to ensure it is formatted correctly
  • If any lesson files are included in this PR, they follow the Layout Style Guide

@github-actions github-actions bot added the Content: NodeJS Involves the NodeJS course label Oct 19, 2024
@MaoShizhong MaoShizhong added the Project Node Revamp Issues/PRs related to the Node Revamp project label Oct 19, 2024
@MaoShizhong MaoShizhong changed the title Node revamp cookies New lesson: Cookies Oct 19, 2024
Remove duplicate line
@MaoShizhong MaoShizhong marked this pull request as ready for review November 13, 2024 15:53
@01zulfi 01zulfi self-requested a review November 13, 2024 16:19
Copy link
Contributor

@Asartea Asartea left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

nodeJS/authentication/cookies.md Outdated Show resolved Hide resolved
@Lofty-Brambles
Copy link
Contributor

Short and to the point. LGTM!

Co-authored-by: Asartea <[email protected]>
- [What are cookies?](#introduction)
- [Why might you need to set an expiry date on a cookie?](#expiresmaxage)
- [Why might you want to prevent client-side JavaScript from accessing a cookie and how would you implement that?](#httponly)
- [What does the "Secure" attribute do to a cookie?](#secure)
Copy link
Member

@01zulfi 01zulfi Nov 25, 2024

Choose a reason for hiding this comment

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

I'd rather have httpOnly attribute in the KC in place of Secure, though I'm fine without this change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The httpOnly attribute is there as a KC, just with a more generally-worded question.

Copy link
Member

@01zulfi 01zulfi left a comment

Choose a reason for hiding this comment

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

gets the job done 👍

(Mao, I swear this is a compliment 😭 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content: NodeJS Involves the NodeJS course Project Node Revamp Issues/PRs related to the Node Revamp project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Lesson: Cookies
4 participants