1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-02-04 02:04:08 +02:00

twich - fixed comments and use the provider ctx

This commit is contained in:
Gani Georgiev 2024-10-10 14:45:47 +03:00
parent f7a6097464
commit 64bbd6f841

View File

@ -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
}