[PR #5944] fix: use ctx over request in plugin options #14586

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

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

State: closed
Merged: Yes


linear: https://linear.app/better-auth/issue/ENG-457/change-all-request-callback-params-on-better-auth-options-to-be
closes: https://github.com/better-auth/better-auth/issues/5300

Breaking Change

Many plugin options which allow request have now been convert to ctx. You can still access request, it's under ctx.request.

Endpoints changed: email-otp, magic-link, organization, phone-number, two-factor

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5944 **State:** closed **Merged:** Yes --- linear: https://linear.app/better-auth/issue/ENG-457/change-all-request-callback-params-on-better-auth-options-to-be closes: https://github.com/better-auth/better-auth/issues/5300 ## Breaking Change Many plugin options which allow `request` have now been convert to `ctx`. You can still access request, it's under `ctx.request`. Endpoints changed: email-otp, magic-link, organization, phone-number, two-factor
GiteaMirror added the pull-request label 2026-04-13 09:32:09 -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#14586