couldnt find organization.listInvitations

https://www.better-auth.com/docs/plugins/organization#list-invitations I couldnt find a function const invitationsR = await authClient.organization.listInvitations({ query: { organizationId: "organization-id", // optional, by default it will use the active organization }, });
Organization | Better Auth
The organization plugin allows you to manage your organization's members and teams.
Solution:
update to latest
Jump to solution
5 Replies
rhitune
rhituneOP7d ago
@bekacru if you online can you help?
organization({
async sendInvitationEmail(data) {
const inviteLink = `http://localhost:3000/accept-invitation/${data.id}`;
await sendOrganizationInvitation({
email: data.email,
invitedByUsername: data.inviter.user.name,
invitedByEmail: data.inviter.user.email,
teamName: data.organization.name,
inviteLink,
});
},
teams: {
enabled: true,
maximumTeams: 5,
},
organizationCreation: {
disabled: false,
},
}),
organization({
async sendInvitationEmail(data) {
const inviteLink = `http://localhost:3000/accept-invitation/${data.id}`;
await sendOrganizationInvitation({
email: data.email,
invitedByUsername: data.inviter.user.name,
invitedByEmail: data.inviter.user.email,
teamName: data.organization.name,
inviteLink,
});
},
teams: {
enabled: true,
maximumTeams: 5,
},
organizationCreation: {
disabled: false,
},
}),
rhitune
rhituneOP7d ago
No description
Solution
bekacru
bekacru7d ago
update to latest
bekacru
bekacru7d ago
it's added recently
rhitune
rhituneOP7d ago
oh letme try yeah thanks

Did you find this page helpful?