feat: 新增 GitHub OAuth 服务,实现用户通过 GitHub 授权登录功能。

This commit is contained in:
2026-01-26 15:43:28 +08:00
parent 3fc2b8092e
commit a339a9adce

View File

@@ -55,7 +55,10 @@ func NewGitHubOAuthService(userRepo *repository.UserRepository, authService *Aut
authService: authService, authService: authService,
cfg: cfg, cfg: cfg,
httpClient: &http.Client{ httpClient: &http.Client{
Timeout: 30 * time.Second, // 澧炲姞瓒呮椂鏃堕棿 Timeout: 60 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
},
}, },
} }
} }