Seeing several type errors / breaking changes after updating 1.2.5 -> 1.2.8

Running into some issues after upgrading better-auth:

  • fetchOptions is no longer accepted in auth.api calls
  • query now appears to be required for auth.api
  • authClient.useSession → now needs to be accessed via createAuthClient().useSession()
  • Can’t access methods like authClient.organization.cancelInvitation or inviteMember
      await authClient.organization.cancelInvitation({
        invitationId: invitation.id,
      })


Not sure what the recommended migration path is - is there an upgrade guide available? Also wondering if there are any plans to adopt semver for better-auth?
Was this page helpful?