BA
Better Auth•9h ago
jack

solid auth instance doesn't include organization methods

i've set up the organization plugin with my solid.js auth client, but the only organization methods i get are the hooks (which i can't use in the tanstack loaders) the only method i have is auth.organization.checkRolePermission. based on the docs, it's my understanding i should be able to have all the hooks exposed as async methods? perhaps there's something i'm doing wrong, here's my client
export const AuthClient = Effect.gen(function* () {
const apiUrl = yield* ApiUrl;

const betterAuthClientInstance = createAuthClient({
baseURL: apiUrl,
plugins: [organizationClient()],
});

return betterAuthClientInstance;
export const AuthClient = Effect.gen(function* () {
const apiUrl = yield* ApiUrl;

const betterAuthClientInstance = createAuthClient({
baseURL: apiUrl,
plugins: [organizationClient()],
});

return betterAuthClientInstance;
1 Reply
jack
jackOP•5h ago
actually, testing this out it looks like the same thing is happening if i import the react client 🤔

Did you find this page helpful?