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

save password in client cookies implemented #6

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

shayanshabani
Copy link
Contributor

No description provided.

Copy link
Member

@Grissess Grissess left a comment

Choose a reason for hiding this comment

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

Fits the bill! Just a few notes, one of which has a parsing concern, but it looks good otherwise.

@Alextopher Alextopher linked an issue Jul 6, 2023 that may be closed by this pull request
@Alextopher
Copy link
Member

Alextopher commented Jul 6, 2023

@Grissess did you mean to leave comments? I don't see any

static/site.js Outdated
const cookieName = "password";
const cookieOptions = {
expires: expirationDate.toUTCString(),
path: "/"
Copy link
Member

Choose a reason for hiding this comment

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

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value

A same site attribute should be set (at least to prevent the warning in the developer console) and I think Strict is correct for a secret.

@Alextopher Alextopher merged commit dd67bec into COSI-Lab:main Jul 18, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save password in client cookies
3 participants