Skip to content

Commit

Permalink
Adjust session cookie settings
Browse files Browse the repository at this point in the history
30 day login!
  • Loading branch information
malte-laukoetter committed Dec 18, 2023
1 parent 0f4e2c2 commit bee8a29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ export type SessionData = {
troiEmployeeId: number;
troiCalculationPositions: CalculationPosition[];
troiTimeEntries: TimeEntries;
// POST -> timeEntries.set(asd, new TimeEntry())
// DELETE -> timeEntries.remove()
// PUT -> timeEntries.set(asd, entry)
troiCalendarEvents: CalendarEvent[];
};

const sessionCookie = createCookie("__session", {
maxAge: 30 * 24 * 60 * 60,
secrets: ["todo_create_a_secret_and_load_from_env"],
sameSite: true,
sameSite: "lax",
secure: true,
httpOnly: true,
});

const { getSession, commitSession, destroySession } =
Expand Down

0 comments on commit bee8a29

Please sign in to comment.