Skip to content

Commit d18d22e

Browse files
committed
Remove references to Google+ in Google provider
1 parent 819a7c4 commit d18d22e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

providers/google/google.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717

1818
const endpointProfile string = "https://www.googleapis.com/oauth2/v2/userinfo"
1919

20-
// New creates a new Google+ provider, and sets up important connection details.
20+
// New creates a new Google provider, and sets up important connection details.
2121
// You should always call `google.New` to get a new Provider. Never try to create
2222
// one manually.
2323
func New(clientKey, secret, callbackURL string, scopes ...string) *Provider {
@@ -31,7 +31,7 @@ func New(clientKey, secret, callbackURL string, scopes ...string) *Provider {
3131
return p
3232
}
3333

34-
// Provider is the implementation of `goth.Provider` for accessing Google+.
34+
// Provider is the implementation of `goth.Provider` for accessing Google.
3535
type Provider struct {
3636
ClientKey string
3737
Secret string

providers/google/session.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ import (
99
"github.com/markbates/goth"
1010
)
1111

12-
// Session stores data during the auth process with Google+.
12+
// Session stores data during the auth process with Google.
1313
type Session struct {
1414
AuthURL string
1515
AccessToken string
1616
RefreshToken string
1717
ExpiresAt time.Time
1818
}
1919

20-
// GetAuthURL will return the URL set by calling the `BeginAuth` function on the Google+ provider.
20+
// GetAuthURL will return the URL set by calling the `BeginAuth` function on the Google provider.
2121
func (s Session) GetAuthURL() (string, error) {
2222
if s.AuthURL == "" {
2323
return "", errors.New(goth.NoAuthUrlErrorMessage)
2424
}
2525
return s.AuthURL, nil
2626
}
2727

28-
// Authorize the session with Google+ and return the access token to be stored for future use.
28+
// Authorize the session with Google and return the access token to be stored for future use.
2929
func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, error) {
3030
p := provider.(*Provider)
3131
token, err := p.config.Exchange(goth.ContextForClient(p.Client()), params.Get("code"))

0 commit comments

Comments
 (0)