Admin Plugin Issue with better-auth 1.2.1

found a type compatibility issue between the admin plugin and better-auth 1.2.1. the admin plugin's init function expects the old authcontext interface, but 1.2.1 requires a runMigrations property that's missing in the plugin. this causes typescript errors when trying to use the admin plugin with the updated library
3 Replies
Ping
Ping19h ago
Works for me. Could it be tsserver not updating after you upgraded your better-auth deps?
mohil
mohilOP18h ago
i feel so stupid, sorry for wasting your time
Ping
Ping18h ago
It was no worries.

Did you find this page helpful?