0.26.0's lightningClient() named better-auth's own fetch type, which went into
the published declaration. In BiasLens, whose better-auth resolved another
@better-fetch/fetch, authClientPlugins() was no longer assignable to
createAuthClient's plugins and the typecheck failed. The plugin types its one
call by shape; a test keeps better-fetch names out of the declaration and a
type test compiles a product's own wiring.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
v0.2.0 typed the adapter slice with property syntax and Promise returns, so
no Auth.js Adapter (methods taking AdapterUser, returning Awaitable<…>)
could be passed: petvity and surf-your-life failed typecheck on adoption.
Method syntax checks parameters bivariantly and accepts any return.
test/types/adapter.ts compiles the wrapper against the REAL @auth/core
Adapter type (dev dependency, types only) in `typecheck`. Mutated: restoring
the v0.2.0 shape gives 4 errors there.
README: SignInError needs styles.css imported, or it renders as bare text.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>