From 0e2692d2ef5852e0643de3c2b6894d0da8d9074e Mon Sep 17 00:00:00 2001 From: Kamui Date: Wed, 1 Nov 2023 19:32:49 -0500 Subject: [PATCH] fix: expiry correct type --- src/pages/app/home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/app/home.tsx b/src/pages/app/home.tsx index 7d14c6266..49b19731a 100644 --- a/src/pages/app/home.tsx +++ b/src/pages/app/home.tsx @@ -29,7 +29,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { cookies.set('next-auth.session-token', session.sessionToken, { domain: 'localhost', // session is not actually a 'Date' object here, it's a string - expiry: Math.floor(new Date(session.expires).getTime() / 1000), + expires: new Date(session.expires), httpOnly: true, path: '/', secure: false,