Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Jleagle committed Nov 4, 2022
1 parent 31298b8 commit 13c75a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions providers/patreon/patreon.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ func (p *Provider) BeginAuth(state string) (goth.Session, error) {

// FetchUser will go to Patreon and access basic information about the user.
func (p *Provider) FetchUser(session goth.Session) (goth.User, error) {
sesh := session.(*Session)
sess := session.(*Session)
user := goth.User{
AccessToken: sesh.AccessToken,
AccessToken: sess.AccessToken,
Provider: p.Name(),
RefreshToken: sesh.RefreshToken,
ExpiresAt: sesh.ExpiresAt,
RefreshToken: sess.RefreshToken,
ExpiresAt: sess.ExpiresAt,
}

if user.AccessToken == "" {
Expand All @@ -132,7 +132,7 @@ func (p *Provider) FetchUser(session goth.Session) (goth.User, error) {
return user, err
}

req.Header.Add("authorization", "Bearer "+sesh.AccessToken)
req.Header.Add("authorization", "Bearer "+sess.AccessToken)
response, err := p.Client().Do(req)
if err != nil {
return user, err
Expand Down

0 comments on commit 13c75a4

Please sign in to comment.