Skip to content

Commit

Permalink
fix: expiry correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
kamui-fin committed Nov 2, 2023
1 parent d33cf45 commit 0e2692d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/app/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0e2692d

Please sign in to comment.