From 13c75a4a4cfa9fcc4800ad419e9ff18e33c03792 Mon Sep 17 00:00:00 2001 From: Jleagle Date: Fri, 4 Nov 2022 13:35:17 +0000 Subject: [PATCH] Rename --- providers/patreon/patreon.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/providers/patreon/patreon.go b/providers/patreon/patreon.go index 4f0170628..9d52a7cac 100644 --- a/providers/patreon/patreon.go +++ b/providers/patreon/patreon.go @@ -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 == "" { @@ -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