[GH-ISSUE #2379] Outdated documentation for organization plugin #9170

Closed
opened 2026-04-13 04:32:13 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @tintinthedev on GitHub (Apr 20, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2379

Image

Shouldn't the metadata type be Object instead of string?

I'm reporting here, and not opening a PR to fix it, because I'm not really sure. I mean, I use it as an object, so that's why I'm asking

Originally created by @tintinthedev on GitHub (Apr 20, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2379 ![Image](https://github.com/user-attachments/assets/96a300f3-d6be-4c6e-a8e9-2b34da888e45) Shouldn't the `metadata` type be `Object` instead of `string`? I'm reporting here, and not opening a PR to fix it, because I'm not really sure. I mean, I use it as an object, so that's why I'm asking
GiteaMirror added the locked label 2026-04-13 04:32:13 -05:00
Author
Owner

@Kinfe123 commented on GitHub (Apr 21, 2025):

It is meant to be string since metadata provides flexibility and ensures the field can store complex structures by stringifying your object and parse it later when needed.

<!-- gh-comment-id:2818196179 --> @Kinfe123 commented on GitHub (Apr 21, 2025): It is meant to be string since metadata provides flexibility and ensures the field can store complex structures by stringifying your object and parse it later when needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9170