refactor: use our exchange

This commit is contained in:
Derrick Hammer 2024-02-11 15:00:13 -05:00
parent 055f502114
commit 4b429e6d59
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

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