useListOrganizations Impossible to call this expression #543

Closed
opened 2026-03-13 07:52:08 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @davidabou on GitHub (Jan 9, 2025).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Create a nuxt project
  2. Add better-auth
  3. import createAuthClient from better-auth/vue
  4. In your app, call useListOrganizations function from your auth client
  5. You have a ts error that indicate :
Impossible to call this expression.
  The Readonly<Ref<any, any>> type has no call signature.

Current vs. Expected behavior

I have the error :

Impossible to call this expression.
  The Readonly<Ref<any, any>> type has no call signature.

I expected a working typing.

What version of Better Auth are you using?

1.1.10

Provide environment information

- OS: Windows 10
- Browser: chrome

Which area(s) are affected? (Select all that apply)

Types

Auth config (if applicable)

export const auth = betterAuth({
  database: drizzleAdapter(db, {
    provider: 'pg',
    schema: { ...schema }
  }),
  baseURL: getBaseURL(),
  emailAndPassword: {
    enabled: true
  },
  plugins: [organization()]
})

Additional context

No response

Originally created by @davidabou on GitHub (Jan 9, 2025). ### Is this suited for github? - [X] Yes, this is suited for github ### To Reproduce 1. Create a nuxt project 2. Add better-auth 3. import createAuthClient from better-auth/vue 4. In your app, call useListOrganizations function from your auth client 5. You have a ts error that indicate : ```ts Impossible to call this expression. The ‘Readonly<Ref<any, any>>’ type has no call signature. ``` ### Current vs. Expected behavior I have the error : ```ts Impossible to call this expression. The ‘Readonly<Ref<any, any>>’ type has no call signature. ``` I expected a working typing. ### What version of Better Auth are you using? 1.1.10 ### Provide environment information ```bash - OS: Windows 10 - Browser: chrome ``` ### Which area(s) are affected? (Select all that apply) Types ### Auth config (if applicable) ```typescript export const auth = betterAuth({ database: drizzleAdapter(db, { provider: 'pg', schema: { ...schema } }), baseURL: getBaseURL(), emailAndPassword: { enabled: true }, plugins: [organization()] }) ``` ### Additional context _No response_
GiteaMirror added the bug label 2026-03-13 07:52:08 -05:00
Author
Owner

@msywulak commented on GitHub (Jan 9, 2025):

https://github.com/better-auth/better-auth/issues/1131

@msywulak commented on GitHub (Jan 9, 2025): https://github.com/better-auth/better-auth/issues/1131
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#543