From 4b429e6d59b206ae8e4c6f30593c3a82f1f80e49 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 11 Feb 2024 15:00:13 -0500 Subject: [PATCH] refactor: use our exchange --- api/routes_setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/routes_setup.go b/api/routes_setup.go index 2681a0c..fea718b 100644 --- a/api/routes_setup.go +++ b/api/routes_setup.go @@ -47,7 +47,7 @@ func (s setupApi) callbackHandler(w http.ResponseWriter, r *http.Request) { return } - token, err := s.oauth.config().Exchange(r.Context(), code) + token, err := s.oauth.exchange(code) if err != nil { http.Error(w, "Failed to exchange code for token", http.StatusInternalServerError) return