Skip to content

Commit

Permalink
fix: fix users being logged out when navigating back from opened links
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaurus committed Apr 9, 2024
1 parent 3ee4034 commit 01f9661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/(theme)/themeActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export const setTheme = async (theme: ThemeName) => {
httpOnly: true,
path: "/",
secure: process.env.NODE_ENV !== "development",
sameSite: "strict",
sameSite: "lax",
});
};
2 changes: 1 addition & 1 deletion src/app/login/authActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const setAuthCookie = (token: string) => {
httpOnly: true,
path: "/",
secure: process.env.NODE_ENV !== "development",
sameSite: "strict",
sameSite: "lax",
});
};
export const getJwtFromAuthCookie = async (): Promise<string | null> => {
Expand Down

0 comments on commit 01f9661

Please sign in to comment.