Merge pull request 'Remove unnecessary logging' (#4) from bugfix/removeLog into main
Reviewed-on: #4
This commit is contained in:
commit
29dd3bb2bb
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue