[PR #5815] feat(client): add type helper AuthClient #14492

Closed
opened 2026-04-13 09:30:13 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5815

State: closed
Merged: Yes


Summary by cubic

Adds a new AuthClient type helper and plugin type aliases to simplify and strengthen typing for createAuthClient and client plugins. Updates tests to use the new types for clearer, safer client declarations.

  • New Features

    • Exported AuthClient as a typed alias for createAuthClient.
    • Exported ApiKeyClientPlugin and OidcClientPlugin type helpers.
  • Refactors

    • Updated SSR and OIDC tests to use the new type helpers.
    • Added customConditions: [] in e2e tsconfig.
    • No runtime changes.

Written for commit def9fc5427. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5815 **State:** closed **Merged:** Yes --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds a new AuthClient type helper and plugin type aliases to simplify and strengthen typing for createAuthClient and client plugins. Updates tests to use the new types for clearer, safer client declarations. - **New Features** - Exported AuthClient<Option> as a typed alias for createAuthClient. - Exported ApiKeyClientPlugin and OidcClientPlugin type helpers. - **Refactors** - Updated SSR and OIDC tests to use the new type helpers. - Added customConditions: [] in e2e tsconfig. - No runtime changes. <sup>Written for commit def9fc54276e56eb505c7dbc43b2a9417cbc015a. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:30:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14492