Skip to content

Updating exchange token response to match API#279

Merged
mrashed-dev merged 14 commits into
mostafarashed/ch66699/release-node-sdk-v6-0-0from
fix/exchange_token_body
Jan 12, 2022
Merged

Updating exchange token response to match API#279
mrashed-dev merged 14 commits into
mostafarashed/ch66699/release-node-sdk-v6-0-0from
fix/exchange_token_body

Conversation

@wallacecs007
Copy link
Copy Markdown
Contributor

@wallacecs007 wallacecs007 commented Sep 17, 2021

https://app.shortcut.com/nylas/story/69505/nylas-exchangecodefortoken-response-body-doesn-t-match-the-api-response

A customer noticed that we were returning only the access token in the exchange token response. This doesn't match the API's response so I updated the response body to include the full response body from the call we make to exchange the token. This will return identifying information about the account as well.

https://developer.nylas.com/docs/api/#post/oauth/token

{
access_token: string
account_id: string
email_address: string
provider: enum
token_type: string
}

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@mrashed-dev
Copy link
Copy Markdown
Contributor

Looks good to me! Will be included in the refactor!

@mrashed-dev mrashed-dev changed the base branch from main to mostafarashed/ch66699/release-node-sdk-v6-0-0 January 12, 2022 16:18
@mrashed-dev mrashed-dev merged commit dca9b18 into mostafarashed/ch66699/release-node-sdk-v6-0-0 Jan 12, 2022
@mrashed-dev mrashed-dev deleted the fix/exchange_token_body branch January 12, 2022 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants