diff --git a/auth.go b/auth.go index 1958c7d..e0b779b 100644 --- a/auth.go +++ b/auth.go @@ -104,7 +104,6 @@ func CallbackHandler(w http.ResponseWriter, r *http.Request) { return } - log.Printf("rawIDToken: %v", rawIDToken) log.Printf("profile: %v", profile) // Redirect to logged in page @@ -198,9 +197,12 @@ func AuthMiddleware(next http.Handler) http.Handler { if err != nil && err != sql.ErrNoRows { log.Println(err) } + } else { + log.Printf("not logged in, profile: %v", profile) } ctx := context.WithValue(r.Context(), "user", user) next.ServeHTTP(w, r.WithContext(ctx)) + }) }