Refactor admin form layout, improve bible reference input, re-enable client-side cookie access, and try manual focus on login modal

This commit is contained in:
Ryderjj89
2025-10-01 18:51:02 -04:00
parent f1dd6c495c
commit 0361c3fbe6
3 changed files with 52 additions and 52 deletions

View File

@@ -22,7 +22,7 @@ export default defineEventHandler(async (event) => {
const token = await createJWT(user)
setCookie(event, 'auth_token', token, {
httpOnly: true,
httpOnly: false,
secure: process.env.NODE_ENV === 'production',
sameSite: 'lax',
maxAge: 7 * 24 * 60 * 60 // 7 days