Closed smuriu closed 3 years ago
Also see issue #166
thank you. i'm not the maintainer of this but i think a PR to fix this would be welcome.
we would need to have a solution that would not involve a breaking change. we cannot simply deprecate the data
field as it is used by a lot of people.
This issue has been automatically marked as stale because it has not had activity in 1 year. It will be closed in 7 days if no further activity occurs. Thanks!
This issue was closed because it had no activity for over 1 year.
For updates to user metadata, the user api expects input with the key
data
. https://github.com/netlify/gotrue/blob/738272dd6983b5993d8be8b8e9c78a37162c94c8/api/user.go#L17For updates to user metadata, the admin api expects input with the key
user_metadata
. https://github.com/netlify/gotrue/blob/738272dd6983b5993d8be8b8e9c78a37162c94c8/api/admin.go#L20The user model will return
user_metadata
. https://github.com/netlify/gotrue/blob/738272dd6983b5993d8be8b8e9c78a37162c94c8/models/user.go#L45Perhaps we should adopt a uniform reference to user metadata.
user_metadata
is less ambiguous/more descriptive than justdata
especially considering that there is also anapp_metadata
field in this api too.