From 774e302ce749f004e97650d05694162780e009d8 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Sun, 10 Mar 2024 16:37:17 +1100 Subject: [PATCH] fix: Add callback debugging --- pkg/spamasaurusrex/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/spamasaurusrex/main.go b/pkg/spamasaurusrex/main.go index 1d66f0a..f792e64 100644 --- a/pkg/spamasaurusrex/main.go +++ b/pkg/spamasaurusrex/main.go @@ -36,6 +36,7 @@ func callbackHandler(w http.ResponseWriter, r *http.Request) { code := r.URL.Query().Get("code") token, err := config.Exchange(r.Context(), code) if err != nil { + w.Write([]byte(spew.Sdump(err))) http.Error(w, "Error exchanging code for token", http.StatusInternalServerError) return }