Merge upstream/main (08779cc) - sync with original repo updates

This commit is contained in:
yuechenglong.5
2026-01-20 09:52:11 +08:00
42 changed files with 3538 additions and 1369 deletions
+12
View File
@@ -227,6 +227,18 @@ func (a *Auth) AccountInfo() (string, string) {
}
}
// For GitHub provider, return username
if strings.ToLower(a.Provider) == "github" {
if a.Metadata != nil {
if username, ok := a.Metadata["username"].(string); ok {
username = strings.TrimSpace(username)
if username != "" {
return "oauth", username
}
}
}
}
// Check metadata for email first (OAuth-style auth)
if a.Metadata != nil {
if v, ok := a.Metadata["email"].(string); ok {