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