diff --git a/apps/backend/rpc/module.go b/apps/backend/rpc/module.go index b5440cb3..a1f9d139 100644 --- a/apps/backend/rpc/module.go +++ b/apps/backend/rpc/module.go @@ -10,6 +10,7 @@ import ( connectcors "connectrpc.com/cors" "github.com/rs/cors" "go.uber.org/fx" + "go.uber.org/zap" "golang.org/x/net/http2" "golang.org/x/net/http2/h2c" @@ -132,6 +133,8 @@ func CookieMiddleware(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { cookie, err := r.Cookie("refreshToken") if err == nil { + zap.L().Info("refresh token found in cookie", zap.String("refresh_token", cookie.Value)) + println("refresh token found in cookie", cookie.Value) ctx := context.WithValue(r.Context(), jwt.ContextKeyRefreshToken, cookie.Value) r = r.WithContext(ctx) }