Updating organization metadata
Currently, after updating organization metadata, the metadata gets stringified twice, causing the data to be stored as '[object object]'
This should solve the problem theoretically by checking if the metadata already a string or not and stringifiying it based on that. I didn't have time to create a PR and clone the project so i just drafted this quickly from what I saw in the file
File path:
packages/better-auth/src/plugins/organization/adapter.ts
Untested Code:
3 Replies
@bekacru Sorry didn't have time to create a PR, here is what I think could solve this
https://github.com/better-auth/better-auth/issues/698#issuecomment-2508770820
GitHub
Unable to update metadata for the organization · Issue #698 · bette...
Describe the bug In the organization plugin, the organization update should be able to update the metadata. However it only prompts to update the name and the slug. To Reproduce Steps to reproduce ...
hey fix should be released today
will ping you here
hey @Kazz you can try it on
v1.0.9-beta.3
Tested it with my project, working perfectly 👌