This commit is contained in:
Sakurasan
2023-04-10 22:37:28 +08:00
parent a8d946d32d
commit e3ae752eb5

View File

@@ -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))