We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3790f99 commit 544994aCopy full SHA for 544994a
src/server/config/trpc.ts
@@ -233,7 +233,7 @@ export const protectedProcedure = (
233
if (token && req.method === 'GET') {
234
resHeaders.append(
235
'Set-Cookie',
236
- `${AUTH_COOKIE_NAME}=${token}; Path=/; Expires=${session.expiresAt}; SameSite=Lax; HttpOnly; Secure=${env.NODE_ENV === 'production'}`
+ `${AUTH_COOKIE_NAME}=${token}; Path=/; Expires=${session.expiresAt.toUTCString()}; SameSite=Lax; HttpOnly; Secure=${env.NODE_ENV === 'production'}`
237
);
238
}
239
0 commit comments