netlify / gotrue

An SWT based API for managing users and issuing SWT tokens.
https://www.gotrueapi.org
MIT License
3.88k stars 288 forks source link

Incorrect info in the readme #166

Closed cameronmcefee closed 3 years ago

cameronmcefee commented 6 years ago

Hello!

I didn't submit a PR for this in case I'm misunderstanding the docs. I'd link to the section but it doesn't have anchors :(

In PUT /user, the sample implies that to update a user with arbitrary data, one must set the data value. This is how gotrue-js works, which makes sense.

That is, submit something like this:

{
  data: {
    "foo": "bar"
  }
}

However, I found that to do this I actually needed to use user_metadata, like this:

{
  user_metadata: {
    "foo": "bar"
  }
}

Is this intentional, or should the documentation be updated?

github-actions[bot] commented 3 years ago

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!

github-actions[bot] commented 3 years ago

This issue was closed because it had no activity for over 1 year.