diff options
Diffstat (limited to 'vendor/github.com/markbates/goth/providers/google/session.go')
-rw-r--r-- | vendor/github.com/markbates/goth/providers/google/session.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/github.com/markbates/goth/providers/google/session.go b/vendor/github.com/markbates/goth/providers/google/session.go index 47df1601bc..f2791df59d 100644 --- a/vendor/github.com/markbates/goth/providers/google/session.go +++ b/vendor/github.com/markbates/goth/providers/google/session.go @@ -15,6 +15,7 @@ type Session struct { AccessToken string RefreshToken string ExpiresAt time.Time + IDToken string } // GetAuthURL will return the URL set by calling the `BeginAuth` function on the Google provider. @@ -40,6 +41,7 @@ func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, s.AccessToken = token.AccessToken s.RefreshToken = token.RefreshToken s.ExpiresAt = token.Expiry + s.IDToken = token.Extra("id_token").(string) return token.AccessToken, err } |