makenotion / notion-sdk-js

Official Notion JavaScript Client
https://developers.notion.com/docs
MIT License
4.95k stars 591 forks source link

Missing `request_id` type in `OauthTokenResponse` #487

Open MohammedEsafi opened 9 months ago

MohammedEsafi commented 9 months ago

Description:

Currently, the OauthTokenResponse does not include a field for the request_id type, even though this field is included in the actual response. this absence leads to a type error in a specific use case where I encounter the issue while utilizing that field.

Screenshot 2024-02-04 at 21 16 46

To address this issue, I have to cast the token method response. however, I believe this should be resolved within the library itself. I plan to open a PR to address this issue.

Screenshot 2024-02-04 at 21 32 12