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

Backend: no expiry set on cookie #37

Open
Southclaws opened this issue Oct 9, 2023 · 1 comment
Open

Backend: no expiry set on cookie #37

Southclaws opened this issue Oct 9, 2023 · 1 comment

Comments

@Southclaws
Copy link
Owner

// Create an encrypted cookie from an account ID.
func (j *cookieJar) Create(accountID string) string {
return (&http.Cookie{
Name: secureCookieName,
Value: j.ss.Encrypt(accountID),
SameSite: http.SameSiteDefaultMode,
Path: "/",
Domain: j.domain,
Secure: true,
HttpOnly: true,
}).String()
}

@Southclaws
Copy link
Owner Author

this should probably be 3 months default but configurable by the installation host.

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

No branches or pull requests

1 participant