Skip to content

Commit 45bf701

Browse files
committed
fix: set cookie date to string conversion
1 parent 3790f99 commit 45bf701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/config/trpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const protectedProcedure = (
233233
if (token && req.method === 'GET') {
234234
resHeaders.append(
235235
'Set-Cookie',
236-
`${AUTH_COOKIE_NAME}=${token}; Path=/; Expires=${session.expiresAt}; SameSite=Lax; HttpOnly; Secure=${env.NODE_ENV === 'production'}`
236+
`${AUTH_COOKIE_NAME}=${token}; Path=/; Expires=${session.expiresAt.toISOString()}; SameSite=Lax; HttpOnly; Secure=${env.NODE_ENV === 'production'}`
237237
);
238238
}
239239

0 commit comments

Comments
 (0)