From d18d22ec8eebc0b6d90837945fa1359ad1ec2812 Mon Sep 17 00:00:00 2001 From: Ben Tranter Date: Fri, 12 Oct 2018 19:24:32 -0400 Subject: [PATCH] Remove references to Google+ in Google provider --- providers/google/google.go | 4 ++-- providers/google/session.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/providers/google/google.go b/providers/google/google.go index 425a1fff2..dcaec35e7 100644 --- a/providers/google/google.go +++ b/providers/google/google.go @@ -17,7 +17,7 @@ import ( const endpointProfile string = "https://www.googleapis.com/oauth2/v2/userinfo" -// New creates a new Google+ provider, and sets up important connection details. +// New creates a new Google provider, and sets up important connection details. // You should always call `google.New` to get a new Provider. Never try to create // one manually. func New(clientKey, secret, callbackURL string, scopes ...string) *Provider { @@ -31,7 +31,7 @@ func New(clientKey, secret, callbackURL string, scopes ...string) *Provider { return p } -// Provider is the implementation of `goth.Provider` for accessing Google+. +// Provider is the implementation of `goth.Provider` for accessing Google. type Provider struct { ClientKey string Secret string diff --git a/providers/google/session.go b/providers/google/session.go index 866620302..47df1601b 100644 --- a/providers/google/session.go +++ b/providers/google/session.go @@ -9,7 +9,7 @@ import ( "github.com/markbates/goth" ) -// Session stores data during the auth process with Google+. +// Session stores data during the auth process with Google. type Session struct { AuthURL string AccessToken string @@ -17,7 +17,7 @@ type Session struct { ExpiresAt time.Time } -// GetAuthURL will return the URL set by calling the `BeginAuth` function on the Google+ provider. +// GetAuthURL will return the URL set by calling the `BeginAuth` function on the Google provider. func (s Session) GetAuthURL() (string, error) { if s.AuthURL == "" { return "", errors.New(goth.NoAuthUrlErrorMessage) @@ -25,7 +25,7 @@ func (s Session) GetAuthURL() (string, error) { return s.AuthURL, nil } -// Authorize the session with Google+ and return the access token to be stored for future use. +// Authorize the session with Google and return the access token to be stored for future use. func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, error) { p := provider.(*Provider) token, err := p.config.Exchange(goth.ContextForClient(p.Client()), params.Get("code"))