fix: optimized the GitHub login copy and timeout.

This commit is contained in:
Seefs
2025-11-19 14:34:30 +08:00
parent 62edac7c7f
commit 1fc3c4b09d
8 changed files with 68 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ func getGitHubUserInfoByCode(code string) (*GitHubUser, error) {
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Accept", "application/json")
client := http.Client{
Timeout: 5 * time.Second,
Timeout: 20 * time.Second,
}
res, err := client.Do(req)
if err != nil {