Merge branch 'master' of https://git.gopher.ink/mirrors2/api-proxy
This commit is contained in:
@@ -90,7 +90,7 @@ func githubCallbackHandler(c *gin.Context) {
|
|||||||
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": fmt.Errorf("授权失败: %s", err.Error())})
|
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": fmt.Errorf("授权失败: %s", err.Error())})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Println("token:", token)
|
log.Println("token:", &token.AccessToken)
|
||||||
|
|
||||||
// 使用 token 获取 GitHub 用户信息
|
// 使用 token 获取 GitHub 用户信息
|
||||||
client := github.NewClient(oauthConf.Client(context.Background(), token))
|
client := github.NewClient(oauthConf.Client(context.Background(), token))
|
||||||
|
|||||||
Reference in New Issue
Block a user