0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00
logto/.changeset/silent-eyes-leave.md
Gao Sun b4f702a860
refactor(core): return organization data in userinfo endpoint (#5010)
* refactor(core): return organization data in userinfo endpoint

* chore(core): add comments

* chore: fix tests
2023-11-30 13:51:53 +08:00

416 B

@logto/core-kit @logto/core
patch patch

userinfo endpoint will return organization_data claim if organization scope is requested

The claim includes all organizations that the user is a member of with the following structure:

{
  "organization_data": [
    {
      "id": "organization_id",
      "name": "organization_name",
      "description": "organization_description",
    }
  ]
}