Skip to content

Commit

Permalink
Ajoute le max age
Browse files Browse the repository at this point in the history
  • Loading branch information
derfurth committed Feb 13, 2024
1 parent 5952512 commit f2c772f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/site/app/auth/confirm/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export const GET = async (request: NextRequest) => {
const response = NextResponse.redirect(next)
response.headers.append(
'Set-Cookie',
`tet-access-token=${data.session.access_token}; Domain=${domain}; SameSite=Lax; Secure`
`tet-access-token=${data.session.access_token}; Domain=${domain}; Max-Age:${60 * 60 * 24 * 365}; SameSite=Lax; Secure`
);
response.headers.append(
'Set-Cookie',
`tet-refresh-token=${data.session.refresh_token}; Domain=${domain}; SameSite=Lax; Secure`
`tet-refresh-token=${data.session.refresh_token}; Domain=${domain}; Max-Age:${60 * 60 * 24 * 365}; SameSite=Lax; Secure`
);
return response;
}
Expand Down

0 comments on commit f2c772f

Please sign in to comment.