How client plugins actions can be accessed?

Hey folks, I've made a custom plugin with custom actions in the getActions, but I can't access them in the authClient. Is there any example of how it can be done? Or any explantation of how plugin custom actions are getting infered?
2 Replies
Mehr
MehrOP3d ago
Or in other words, is my expectation that my client actions can be accessed this way valid?
await authClient.[pluginId].customAction();
await authClient.[pluginId].customAction();
Mehr
MehrOP3d ago
I see this test case here (https://github.com/better-auth/better-auth/blob/7fffd8bb909fef9389bfbdd16c698c210b02a230/packages/better-auth/src/client/client.test.ts#L205) and it seems related to what I am asking, but still I can't understand how it is done.
GitHub
better-auth/packages/better-auth/src/client/client.test.ts at 7fffd...
The most comprehensive authentication framework for TypeScript - better-auth/better-auth

Did you find this page helpful?