mirror of
https://github.com/langgenius/dify.git
synced 2026-04-10 19:47:53 +08:00
When a GitHub user's profile email is null (hidden/private), the OAuth callback fails with HTTP 400 because `GitHubRawUserInfo` validates `email` as a required non-null string. Even after the type was relaxed to `NotRequired[str | None]` in #33882, the flow still raises a `ValueError` when no email can be resolved, blocking sign-in entirely. This PR improves the email resolution strategy so that users with private GitHub emails can still sign in. |
||
|---|---|---|
| .. | ||
| fixtures/workflow | ||
| integration_tests | ||
| test_containers_integration_tests | ||
| unit_tests | ||
| __init__.py | ||
| conftest.py | ||
| workflow_test_utils.py | ||