chore: use cookie in production

This commit is contained in:
Ephraim Atta-Duncan
2025-05-21 11:36:30 +00:00
parent d213b378b8
commit e1fc49fa49

View File

@ -29,7 +29,7 @@ export const appMiddleware = async (c: Context, next: Next) => {
httpOnly: true,
sameSite: 'Lax',
maxAge: 150,
// secure: process.env.NODE_ENV === 'production'
secure: process.env.NODE_ENV === 'production',
});
debug.log('Redirecting to (from param):', redirectTo);