mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
c95755502d
* 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>
501 B
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.