Skip to content

Commit

Permalink
Fix cookies v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Umali committed Oct 21, 2023
1 parent 425e814 commit 8ffc01b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions client/app/login/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import PageLoader from "@/components/page-loader";

export default function Loading() {
return <PageLoader loaderMessage="Loading login/signup page" />;
}
2 changes: 1 addition & 1 deletion server/src/controllers/authentication.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const authorizeUser = async (req: BodyRequest<UserRequest>, res: Response
secure: process.env.NODE_ENV === "production",
httpOnly: true,
signed: true,
sameSite: "lax",
sameSite: "none",
expires: refreshTokenExpiry,
});

Expand Down

0 comments on commit 8ffc01b

Please sign in to comment.