Skip to content

Commit 75b3aec

Browse files
committed
Temp error log
1 parent b9af172 commit 75b3aec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/auth.go

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func handleGithubCallback(c *gin.Context) {
4343

4444
token, err := githubOauthConfig.Exchange(c, code)
4545
if err != nil {
46+
fmt.Printf("Error exchanging code: %s\n", err)
4647
c.JSON(
4748
http.StatusForbidden,
4849
gin.H{
@@ -140,6 +141,7 @@ func handleDiscordCallback(c *gin.Context) {
140141

141142
token, err := discordOauthConfig.Exchange(c, code)
142143
if err != nil {
144+
fmt.Printf("Error exchanging code: %s\n", err)
143145
c.JSON(
144146
http.StatusForbidden,
145147
gin.H{

0 commit comments

Comments
 (0)