[GH-ISSUE #1228] Update organization #8651

Closed
opened 2026-04-13 03:48:14 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @mmikhan on GitHub (Jan 16, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1228

Is this suited for github?

  • Yes, this is suited for github

There's no way to update the organizations name, slug, or image.

Describe the solution you'd like

Have an organization update method to update the name, slug, and image to complete the organization flow.

Describe alternatives you've considered

N/A

Additional context

No response

Originally created by @mmikhan on GitHub (Jan 16, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1228 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. There's no way to update the organizations name, slug, or image. ### Describe the solution you'd like Have an organization update method to update the name, slug, and image to complete the organization flow. ### Describe alternatives you've considered N/A ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 03:48:14 -05:00
Author
Owner

@Bekacru commented on GitHub (Jan 16, 2025):

I think it's not documented but you can use client.organization.update

<!-- gh-comment-id:2596209637 --> @Bekacru commented on GitHub (Jan 16, 2025): I think it's not documented but you can use `client.organization.update`
Author
Owner

@undefinedhuman commented on GitHub (Jan 16, 2025):

Works! I am using this:

const updateOrganization = () => {
  authClient.organization.update({
    data: {
      name: teamDto.value.name
    }
  });
};
<!-- gh-comment-id:2596863635 --> @undefinedhuman commented on GitHub (Jan 16, 2025): Works! I am using this: ``` const updateOrganization = () => { authClient.organization.update({ data: { name: teamDto.value.name } }); }; ```
Author
Owner

@mmikhan commented on GitHub (Jan 17, 2025):

Thanks for updating the documentation as well 4b2cc7af3f 🙏

<!-- gh-comment-id:2598128958 --> @mmikhan commented on GitHub (Jan 17, 2025): Thanks for updating the documentation as well 4b2cc7af3f7e3c8b7532104d882bb05f9dbffcbe 🙏
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8651