Skip to content

Conversation

@CorentinTh
Copy link
Member

No description provided.

@CorentinTh CorentinTh self-assigned this Dec 12, 2025
Copilot AI review requested due to automatic review settings December 12, 2025 00:38
@CorentinTh CorentinTh requested a review from a team as a code owner December 12, 2025 00:38
@changeset-bot
Copy link

changeset-bot bot commented Dec 12, 2025

🦋 Changeset detected

Latest commit: 340ba07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@papra/docker Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 12, 2025

Deploying papra-demo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 340ba07
Status: ✅  Deploy successful!
Preview URL: https://c461f01e.papra-demo.pages.dev
Branch Preview URL: https://better-auth-1-4.papra-demo.pages.dev

View logs

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the better-auth library from version 1.3.34 to 1.4.6 and implements enhanced authentication configuration security by enforcing proper AUTH_SECRET validation, particularly in production environments.

Key Changes:

  • Updated better-auth and @better-auth/expo from 1.3.34 to 1.4.6
  • Implemented production-safe AUTH_SECRET validation with a minimum 32-character requirement
  • Renamed forgetPassword to requestPasswordReset to align with better-auth 1.4 API changes

Reviewed changes

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

Show a summary per file
File Description
pnpm-workspace.yaml Updated catalog versions for better-auth packages to 1.4.6
pnpm-lock.yaml Updated lock file with new better-auth 1.4.6 dependencies, including peer dependency changes (removed expo-crypto and expo-secure-store as required, added expo-network as optional)
apps/papra-server/src/modules/config/config.ts Replaced lodash memoize with memoizeOnce from @corentinth/chisels; added validation logic for auth secret in production
apps/papra-server/src/modules/config/config.models.ts Added exitProcessDueToConfigError and validateParsedConfig utility functions for configuration validation
apps/papra-server/src/modules/app/auth/auth.errors.ts Added createAuthSecretIsDefaultError for production auth secret validation
apps/papra-server/src/modules/app/auth/auth.constants.ts Defined DEFAULT_AUTH_SECRET constant for development environments
apps/papra-server/src/modules/app/auth/auth.constants.test.ts Added test to ensure default auth secret meets 32-character minimum
apps/papra-server/src/modules/app/auth/auth.config.ts Updated auth secret configuration with enhanced documentation and 32-character minimum requirement
apps/papra-server/src/modules/app/auth/auth.config.models.ts Added ensureAuthSecretIsNotDefaultInProduction validation function
apps/papra-server/src/modules/app/auth/auth.config.models.test.ts Added tests for production auth secret validation
apps/papra-client/src/modules/auth/pages/request-password-reset.page.tsx Renamed forgetPassword to requestPasswordReset
apps/papra-client/src/modules/auth/auth.services.ts Renamed forgetPassword to requestPasswordReset to match better-auth 1.4 API
apps/papra-client/src/modules/auth/auth.demo.services.ts Renamed forgetPassword to requestPasswordReset in demo client
.changeset/few-peaches-peel.md Documented the production AUTH_SECRET validation requirement
.changeset/fast-schools-pay.md Documented the 32-character minimum requirement for AUTH_SECRET
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 12, 2025

Deploying papra-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 340ba07
Status: ✅  Deploy successful!
Preview URL: https://4412ae54.papra-2op.pages.dev
Branch Preview URL: https://better-auth-1-4.papra-2op.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 12, 2025

Deploying papra-client with  Cloudflare Pages  Cloudflare Pages

Latest commit: 340ba07
Status: ✅  Deploy successful!
Preview URL: https://b2c951e9.papra.pages.dev
Branch Preview URL: https://better-auth-1-4.papra.pages.dev

View logs

@CorentinTh CorentinTh merged commit 95662d0 into main Dec 12, 2025
4 checks passed
@CorentinTh CorentinTh deleted the better-auth-1.4 branch December 12, 2025 16:33
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.

2 participants