Skip to content

docs: update stale README + env docs for better-auth#300

Merged
henrique221 merged 4 commits into
mainfrom
docs/update-stale-docs-294
Jun 9, 2026
Merged

docs: update stale README + env docs for better-auth#300
henrique221 merged 4 commits into
mainfrom
docs/update-stale-docs-294

Conversation

@henrique221

Copy link
Copy Markdown
Contributor

What

Updates documentation that had drifted from the implementation.

Changes

  • README.md — rewrote the Authentication section for better-auth (/login, /reset-password, /accept-invitation, the _authenticated route guard, useAuth() / authClient). Removed the dead ProtectedRoute mention and the broken docs/AUTH_SETUP.md link. Switched the Features and Technologies entries from Auth0 → better-auth. Corrected the Node version (22.15.x / 22.15.024.13.x / 24.13.0) to match package.json engines and .nvmrc.
  • docs/environment-config.md — replaced the broken 2-row table with the full 6 variables (VITE_API_URL, VITE_ENVIRONMENT, VITE_BETTER_AUTH_URL, VITE_AQUIFER_API_URL, VITE_AQUIFER_API_KEY, and optional VITE_APP_INSIGHTS_CONNECTION_STRING). Fixed the config.monitoring.appInsightsKeyappInsightsConnectionString reference.
  • .env.example — removed the dead VITE_APP_INSIGHTS_KEY.

Notes

The Node-version fix wasn't in the ticket's original 3-item list but is the same "stale docs" class — flagged in a ticket comment. Docs-only change; no code touched. Auth content verified against src/lib/auth-client.ts, src/hooks/useAuth.ts, src/routes/_authenticated.tsx, and src/features/auth/*; the env table verified against src/lib/config.ts.

Closes #294

- README: rewrite auth section for better-auth (login / reset-password / accept-invitation, _authenticated guard, useAuth/authClient); drop dead Auth0, ProtectedRoute, and broken AUTH_SETUP.md references; fix Node version 22.15.x -> 24.13.x
- environment-config: replace broken 2-row table with the full 6 vars; fix config.monitoring.appInsightsConnectionString accessor
- .env.example: remove dead VITE_APP_INSIGHTS_KEY
@henrique221 henrique221 self-assigned this Jun 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates project documentation to reflect the current better-auth-based authentication flow and the actual set of required client-side environment variables (including correcting the documented Node.js version to match repo configuration).

Changes:

  • Rewrites README.md Authentication section from Auth0 to better-auth (routes, session APIs, and guard behavior) and updates Node.js prerequisites to 24.13.x.
  • Fixes docs/environment-config.md to list all required VITE_* variables and corrects the monitoring config property name.
  • Removes unused VITE_APP_INSIGHTS_KEY from .env.example.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
README.md Updates auth documentation to better-auth and corrects Node version references.
docs/environment-config.md Expands env var documentation to the full required set and fixes config property naming.
.env.example Removes the dead VITE_APP_INSIGHTS_KEY variable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
Comment thread README.md Outdated
- Clarify that returnTo carries the full URL, not just the path
- List all required env vars in Quick Start to avoid startup config error

Refs: #300
@henrique221 henrique221 requested a review from kaseywright June 9, 2026 16:12
@henrique221 henrique221 merged commit c626192 into main Jun 9, 2026
1 check passed
@github-actions github-actions Bot deleted the docs/update-stale-docs-294 branch June 9, 2026 17:55
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.

Update stale documentation (README + env docs)

3 participants