fix: replace NextAuth references with Better Auth#52
Merged
chriskehayias merged 1 commit intomainfrom Feb 28, 2026
Merged
Conversation
- scripts/setup.ts: NEXTAUTH_SECRET → BETTER_AUTH_SECRET, NEXTAUTH_URL → BETTER_AUTH_URL - scripts/setup.ts: remove unused env vars (OIDC_PROVIDER_NAME, OIDC_SCOPE, OIDC_WELL_KNOWN_URL, NEXTAUTH_DEBUG) - scripts/setup.ts: remove OIDC_WELL_KNOWN_URL from derived URL logic (not consumed by code) - scripts/setup.ts: rename generateNextAuthSecret() → generateAuthSecret() - scripts/setup.ts: fix totalSteps 10 → 9, fix duplicate "Step 9" comment - src/test-setup.ts: update env stubs to BETTER_AUTH_SECRET/BETTER_AUTH_URL - docs/OAUTH_LOGOUT_SETUP.md: update all NextAuth refs to Better Auth, update status - src/lib/providers/ministry-platform/docs/README.md: fix stale directory tree, NextAuth → Better Auth Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/setup.ts): ReplaceNEXTAUTH_SECRET/NEXTAUTH_URLenv vars withBETTER_AUTH_SECRET/BETTER_AUTH_URL, remove unused optional vars (OIDC_PROVIDER_NAME,OIDC_SCOPE,OIDC_WELL_KNOWN_URL,NEXTAUTH_DEBUG), fix step count (10→9), and clean up derived URL logicsrc/test-setup.ts): Update env stubs fromNEXTAUTH_*toBETTER_AUTH_*for consistency with the actual auth systemdocs/OAUTH_LOGOUT_SETUP.mdandsrc/lib/providers/ministry-platform/docs/README.md, fix stale directory tree listing nonexistentauth-provider.tsTest plan
npm run setup -- --checkto verify the setup script validates correctly with new env var namesnpm run test:runto verify tests pass with updated env stubs.env.localusesBETTER_AUTH_SECRET/BETTER_AUTH_URL(withNEXTAUTH_*fallbacks still supported insrc/lib/auth.ts)🤖 Generated with Claude Code