0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00
logto/.changeset/olive-deers-wink.md
Darcy Ye c95755502d
fix(connector): fix GitHub connector GET /emails forbidden error (#5925)
* fix(connector): fix GitHub connector GET /emails forbidden error

* chore: adopt suggestion

Co-authored-by: Gao Sun <gao@silverhand.io>

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-05-29 04:24:04 +00:00

501 B

@logto/connector-github
patch

fix GET /users/emails API requests break social sign-in flow error

Previously, the GET /users/emails API was returning a 403 Forbidden error when the endpoint is not accessible. This will break the social sign-in flow in previous version, so we handled this error and return an empty array instead. In this way, the social sign-in flow will continue but with userEmails as an empty array, and should provide enough information for further investigation.