Skip to content

Commit

Permalink
fix expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Oct 20, 2024
1 parent e97cd1a commit 6155ac7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .auri/$5zvg502u.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
package: "lucia" # package name
type: "patch" # "major", "minor", "patch"
---

Fix cookie expiration
2 changes: 1 addition & 1 deletion .github/workflows/auri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Auri"
on:
push:
branches:
- main
- v3

env:
AURI_GITHUB_TOKEN: ${{secrets.AURI_GITHUB_TOKEN}}
Expand Down
2 changes: 1 addition & 1 deletion packages/lucia/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class Lucia<
this.sessionCookieName = options?.sessionCookie?.name ?? "auth_session";
let sessionCookieExpiresIn = this.sessionExpiresIn;
if (options?.sessionCookie?.expires === false) {
sessionCookieExpiresIn = new TimeSpan(365 * 2, "d");
sessionCookieExpiresIn = new TimeSpan(400, "d");
}
const baseSessionCookieAttributes: CookieAttributes = {
httpOnly: true,
Expand Down

0 comments on commit 6155ac7

Please sign in to comment.