merge: worktree-a11y-fixes into main
Accessibility fixes (aria-labels, color contrast, html lang, inline link underlines), atomic dev login endpoints, and E2E test hardening.
This commit is contained in:
commit
bab53cec9e
31 changed files with 792 additions and 162 deletions
|
|
@ -34,7 +34,7 @@ export default defineEventHandler(async (event) => {
|
|||
|
||||
const config = useRuntimeConfig(event);
|
||||
const token = jwt.sign(
|
||||
{ memberId: member._id, email: member.email, tv: member.tokenVersion },
|
||||
{ memberId: member._id, email: member.email, tv: member.tokenVersion || 0 },
|
||||
config.jwtSecret,
|
||||
{ expiresIn: "7d" },
|
||||
);
|
||||
|
|
@ -43,6 +43,7 @@ export default defineEventHandler(async (event) => {
|
|||
httpOnly: true,
|
||||
secure: false,
|
||||
sameSite: "lax",
|
||||
path: "/",
|
||||
maxAge: 60 * 60 * 24 * 7,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue