refactor: use our exchange
This commit is contained in:
parent
055f502114
commit
4b429e6d59
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue