From 64bbd6f841a3c4d23eae69c166ddb9e30a4e7a19 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Thu, 10 Oct 2024 14:45:47 +0300 Subject: [PATCH] twich - fixed comments and use the provider ctx --- tools/auth/twitch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/auth/twitch.go b/tools/auth/twitch.go index 73698a3d..ad952ca4 100644 --- a/tools/auth/twitch.go +++ b/tools/auth/twitch.go @@ -87,9 +87,9 @@ func (p *Twitch) FetchAuthUser(token *oauth2.Token) (*AuthUser, error) { // FetchRawUserInfo implements Provider.FetchRawUserInfo interface. // -// This differ from baseProvider because Twitch requires the `Client-Id` header. +// This differ from BaseProvider because Twitch requires the Client-Id header. func (p *Twitch) FetchRawUserInfo(token *oauth2.Token) ([]byte, error) { - req, err := http.NewRequest("GET", p.userInfoURL, nil) + req, err := http.NewRequestWithContext(p.ctx, "GET", p.userInfoURL, nil) if err != nil { return nil, err }