Closed Zoly closed 4 months ago
The recent updates to the fetchUserInfoWithToken
method in the GitHub OAuth integration significantly enhance user information retrieval. Initially limited to fetching basic user details, the method now employs additional API calls to gather email addresses, improving robustness and error handling. This ensures that even if a primary email is not available, the method can still provide useful email information, leading to a more reliable interaction with GitHub's API.
File | Change Summary |
---|---|
src/Libraries/GithubOAuth.php |
Enhanced fetchUserInfoWithToken method to check for email visibility, retrieve all emails, and improve error handling. |
🐰 In a world where emails hide,
The rabbit hops with joy and pride.
Fetching info, oh what a thrill,
With every call, we gather still.
GitHub's secrets, now laid bare,
A treasure trove, beyond compare! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Retrieve the user's email addresses regardless if their status is set public or not
Summary by CodeRabbit
These updates result in a more robust integration with GitHub's API, providing users with greater access to their email data.