pagination!

This commit is contained in:
Sean Morley
2024-07-11 19:27:03 -04:00
parent 6713d9ef5d
commit a3784ae164
6 changed files with 157 additions and 85 deletions

View File

@@ -60,13 +60,15 @@ export const actions: Actions = {
httpOnly: true,
sameSite: 'lax',
expires: new Date(Date.now() + 60 * 60 * 1000), // 60 minutes
path: '/'
path: '/',
secure: false
});
event.cookies.set('refresh', refreshToken, {
httpOnly: true,
sameSite: 'lax',
expires: new Date(Date.now() + 365 * 24 * 60 * 60 * 1000), // 1 year
path: '/'
path: '/',
secure: false
});
return redirect(302, '/');