Skip to content

Commit 0bce901

Browse files
committed
remove debug logs
1 parent e5fbaa2 commit 0bce901

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

server/handlers/token.go

-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package handlers
33
import (
44
"crypto/sha256"
55
"encoding/base64"
6-
"fmt"
76
"net/http"
87
"strings"
98
"time"
@@ -264,14 +263,10 @@ func TokenHandler() gin.HandlerFunc {
264263
"roles": roles,
265264
"expires_in": expiresIn,
266265
}
267-
fmt.Println("=> scopes:", scope)
268-
fmt.Println("=> refreshToken:", authToken.RefreshToken)
269266
if authToken.RefreshToken != nil {
270-
log.Debug("Refresh token is present: ", fmt.Sprintf("%s:%s", sessionKey, constants.TokenTypeRefreshToken+"_"+authToken.FingerPrint))
271267
res["refresh_token"] = authToken.RefreshToken.Token
272268
memorystore.Provider.SetUserSession(sessionKey, constants.TokenTypeRefreshToken+"_"+authToken.FingerPrint, authToken.RefreshToken.Token, authToken.RefreshToken.ExpiresAt)
273269
}
274-
fmt.Printf("=> res %v", res)
275270
gc.JSON(http.StatusOK, res)
276271
}
277272
}

0 commit comments

Comments
 (0)