remove needless redirect
This commit is contained in:
parent
c1ceb010b9
commit
0cd4efc8d8
1
main.go
1
main.go
|
@ -94,7 +94,6 @@ func twitchAuthToToken(state string, code string, w http.ResponseWriter, r *http
|
||||||
|
|
||||||
token, err := twitchOauthConfig.Exchange(timeoutCtx, code, oauth2.AccessTypeOffline)
|
token, err := twitchOauthConfig.Exchange(timeoutCtx, code, oauth2.AccessTypeOffline)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Redirect(w, r, "/", http.StatusTemporaryRedirect)
|
|
||||||
log.WithError(err).Error("code exchange failed")
|
log.WithError(err).Error("code exchange failed")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user