mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 23:53:17 -05:00
Previously createBetterAuth awaited a single memoized promise for the auth context. If initFn rejected once (e.g. a plugin's init hitting a transient DB error), that rejection was cached forever and every later request, auth.api.* call, and auth.$context access failed for the process lifetime. Replace the single promise with a retryable getter: a failed attempt clears the memoized promise so the next caller retries initFn, while a successful context is still memoized and never re-created.
Changesets
Hello and welcome! This folder has been automatically generated by @changesets/cli, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it in our repository.
We have a quick list of common questions to get you started engaging with this project in our documentation.