refactor: Change api client to pass http client to auth client
This commit is contained in:
parent
02d09446ce
commit
9c4e63c200
|
@ -117,7 +117,7 @@ func NewDefault(clientId, clientSecret, redirectUri string) *API {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
baseUrl, _ := url.Parse(HelixBaseUrl)
|
baseUrl, _ := url.Parse(HelixBaseUrl)
|
||||||
authClient := auth.New(clientId, clientSecret, redirectUri)
|
authClient := auth.NewWithClient(clientId, clientSecret, redirectUri, client)
|
||||||
|
|
||||||
return New(client, baseUrl, authClient)
|
return New(client, baseUrl, authClient)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue