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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
token, err := s.oauth.config().Exchange(r.Context(), code)
|
token, err := s.oauth.exchange(code)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, "Failed to exchange code for token", http.StatusInternalServerError)
|
http.Error(w, "Failed to exchange code for token", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue