Regression due to changed types in admin plugin hooks since v1.3.28

Since v1.3.28 the following configuration no longer passes typechecks:
import { betterAuth } from 'better-auth'
import { admin } from 'better-auth/plugins'

const auth = betterAuth({ plugins: [admin()] })
import { betterAuth } from 'better-auth'
import { admin } from 'better-auth/plugins'

const auth = betterAuth({ plugins: [admin()] })
GitHub issue with repro: https://github.com/better-auth/better-auth/issues/5674
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?