Skip to content

fix: drop custom better-auth scrypt workaround - #20

Merged
reybahl merged 1 commit into
mainfrom
fix/remove-better-auth-scrypt-workaround
Jul 20, 2026
Merged

reybahl merged 1 commit into
mainfrom
fix/remove-better-auth-scrypt-workaround

Conversation

@reybahl

@reybahl reybahl commented Jul 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Bump better-auth / @better-auth/kysely-adapter to 1.6.23 (pulls @better-auth/utils@0.4.2 with a workerd export for native node:crypto scrypt)
  • Remove the custom packages/auth/src/password.ts hash/verify override that existed because Wrangler previously resolved the pure-JS @noble/hashes scrypt path and exceeded Workers CPU limits

Upstream: better-auth#9649 / utils workerd export fix.

Test plan

  • pnpm install + pnpm typecheck
  • Local Workers sign-up / sign-in still succeed under CPU limits
  • Existing password hashes still verify (format unchanged: salt:hex)

Note

Cloudflare preview (PR #20)

App: https://pr-20-vithos.bahl-reyansh.workers.dev

Rely on @better-auth/utils workerd export (0.4.2 via better-auth 1.6.23) for native node:crypto password hashing on Workers.
@github-actions

Copy link
Copy Markdown

Cloudflare preview (PR #20)

App: https://pr-20-vithos.bahl-reyansh.workers.dev

Neon branch: preview/pr-20 (copy of main at first open; migrations applied on each push).

@reybahl
reybahl merged commit 81d9fb7 into main Jul 20, 2026
3 checks passed
@reybahl
reybahl deleted the fix/remove-better-auth-scrypt-workaround branch July 20, 2026 04:37

This branch was successfully deployed

1 active deployment
preview — e4707874 Deployed Jul 20, 2026 by reybahl via Preview (Worker + SPA) #32
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