Files
Bereket Engida b25793daae fix(core): retry auth context init after a transient failure
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.
2026-09-30 07:42:05 -07:00
..
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00
2026-09-24 15:46:09 +00:00