mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-04-15 21:28:33 +02:00
twich - fixed comments and use the provider ctx
This commit is contained in:
parent
f7a6097464
commit
64bbd6f841
@ -87,9 +87,9 @@ func (p *Twitch) FetchAuthUser(token *oauth2.Token) (*AuthUser, error) {
|
|||||||
|
|
||||||
// FetchRawUserInfo implements Provider.FetchRawUserInfo interface.
|
// 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) {
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user