Merge pull request 'Remove unnecessary logging' (#4) from bugfix/removeLog into main

Reviewed-on: #4
This commit is contained in:
luiz 2024-10-29 09:45:14 +00:00
commit 29dd3bb2bb
1 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package cauth
import ( import (
"context" "context"
"fmt"
"github.com/lestrrat-go/jwx/jwk" "github.com/lestrrat-go/jwx/jwk"
"log" "log"
"net/http" "net/http"
@ -40,7 +39,6 @@ func (m *Middleware) AddUserInfo(next http.Handler) http.Handler {
return return
} }
userInfo := session.Values["user_info"] userInfo := session.Values["user_info"]
fmt.Println(userInfo)
ctx := context.WithValue(r.Context(), userContextKey, userInfo) ctx := context.WithValue(r.Context(), userContextKey, userInfo)
next.ServeHTTP(w, r.WithContext(ctx)) next.ServeHTTP(w, r.WithContext(ctx))