[PR #5793] feat: awaitable custom transforms #14474

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

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

State: closed
Merged: No


Allows customTransformInput and customTransformOutput to be await-able. Required for specific custom computed fields.


Summary by cubic

Make customTransformInput and customTransformOutput awaitable to support async computed fields while keeping sync behavior intact.

  • New Features
    • Adapter factory now awaits customTransformInput/output.
    • Added Awaitable type and updated adapter types to return Awaitable.
    • Enables async computed fields (e.g., external lookups) without breaking existing sync transforms.

Written for commit 17134792e5. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5793 **State:** closed **Merged:** No --- Allows `customTransformInput` and `customTransformOutput` to be await-able. Required for specific custom computed fields. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Make customTransformInput and customTransformOutput awaitable to support async computed fields while keeping sync behavior intact. - **New Features** - Adapter factory now awaits customTransformInput/output. - Added Awaitable type and updated adapter types to return Awaitable<any>. - Enables async computed fields (e.g., external lookups) without breaking existing sync transforms. <sup>Written for commit 17134792e504908ede0ae14155f852b057c7c739. 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:29:36 -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#14474