Trouble with custom plugins

Hey guys, my English is not very good, but I'm having a problem with a custom plugin. I want to create one where each organization can have projects. The creation works fine, but when I try to use the GET methods, I can't use the hooks like this: const { data: allProjects } = authClient.useAllProjects(); const { data: organizationProjects } = authClient.useAllOrganizationProjects( activeOrganization?.id ); here is the erro message: Property 'data' does not exist on type 'Promise<Data<unknown> | Error$1<unknown>>'.ts(2339) and below is my custom plugin
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?