From 28debfd7f9f490b399b3bc22b5d8fffcdc16d3a0 Mon Sep 17 00:00:00 2001 From: Christian Carlsson Date: Mon, 18 Nov 2024 13:15:26 +0000 Subject: [PATCH] more logs --- apps/backend/rpc/module.go | 3 +++ 1 file changed, 3 insertions(+) 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) }