Files
dify/api/libs
Krishna Chaitanya 7c0d2e1d98 fix: handle null email in GitHub OAuth sign-in (#34043)
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.
2026-03-26 00:41:18 +08:00
..
2026-02-09 14:57:23 +08:00
2024-10-21 10:03:40 +08:00
2025-10-21 11:26:58 +08:00
2025-09-18 12:49:10 +08:00