livechat / accounts-sdk

SDK for 'Sign in with LiveChat'.
https://developers.livechat.com/building-apps-crash-course/livechat-apis/
MIT License
2 stars 3 forks source link

Missing fields (account_id and organization_id) from the authorization response. #7

Open tasoskakour opened 2 years ago

tasoskakour commented 2 years ago

The DOCS state that the returned data after a successful authorization process include account_id and organization_id.

However it looks like that the only fields returned are:

{
  "access_token":"xxx",
  "expires_in":28800,
  "state":"yyy",
  "token_type":"Bearer",
  "scope":"xyz"
}

Here is a Codesandbox link that reproduces that (be sure to include your own livechat client_id and add the codesandbox url to the whitelist): https://codesandbox.io/s/loving-pasteur-onw5f