fix: Add callback debugging

This commit is contained in:
Danny Bessems 2024-03-10 16:37:17 +11:00
parent 09dabc1c18
commit 774e302ce7
1 changed files with 1 additions and 0 deletions

View File

@ -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
}