up
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())})
|
||||
return
|
||||
}
|
||||
log.Println("token:", token)
|
||||
log.Println("token:", &token.AccessToken)
|
||||
|
||||
// 使用 token 获取 GitHub 用户信息
|
||||
client := github.NewClient(oauthConf.Client(context.Background(), token))
|
||||
|
||||
Reference in New Issue
Block a user