Skip to content

chore(template): consolidate context, security fixes, and dependency cleanup - #7

Merged
jayleaton merged 2 commits into
mainfrom
fix/template-security-audit
Sep 17, 2026
Merged

jayleaton merged 2 commits into
mainfrom
fix/template-security-audit

Conversation

@jayleaton

@jayleaton jayleaton commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

This cleanup brings the shared project context and the security/dependency audit into one PR. CONTEXT.md is preserved in full, with the matching AGENTS.md and CLAUDE.md instructions directing agents to that shared reference. This supersedes PR #6.

The template allowed unverified email changes through profile PATCH, cached revoked sessions for seven days, and exposed its local database tools on all interfaces. The cleanup restricts profile updates to name/image, enforces immediate session revocation, fixes async route error handling and email delivery, and adds auth lookup indexes. Development retains LAN/Tailscale access using the host's discovered addresses.

Dependencies are updated across all four workspaces with Better Auth and its Expo plugin aligned at 1.7.3 and native dependencies matched to Expo SDK 57. The package manager is pinned, and PR checks cover tests, lint, workspace types, and Expo compatibility.

Validation: 50 tests pass; workspace type checks and lint pass (11 existing web warnings); frozen installation, Next.js production build, Expo compatibility, and iOS JavaScript export pass. Local Postgres and browser checks verified sign-in/dashboard, profile updates, session revocation, and development/production auth boundaries. The context files match the original context branch exactly. No remote database or real email delivery was used.

Dependency findings fell from 8 high / 6 moderate to 0 high / 2 moderate. Remaining upstream advisories and validation limits are documented in the audit report. No advisories are suppressed. A build-environment watch flag was removed for validation; no application workaround was added.

@jayleaton jayleaton changed the title fix(template): harden auth defaults and update supported dependencies chore(template): consolidate context, security fixes, and dependency cleanup Sep 7, 2026
@jayleaton
jayleaton merged commit 3623f77 into main Sep 17, 2026
1 check passed
@jayleaton
jayleaton deleted the fix/template-security-audit branch September 17, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant