Versions in this module Expand all Collapse all v1 v1.59.2 Mar 23, 2020 Changes in this version type ID + Email string + IsPrivateEmail bool type IDTokenClaims + Email string + IsPrivateEmail bool v1.59.1 Nov 21, 2019 Changes in this version + const AppleAudOrIss + const ScopeEmail + const ScopeName + func MakeSecret(sp SecretParams) (*string, error) + type ID struct + Sub string + type IDTokenClaims struct + AccessTokenHash string + AuthTime int + type Provider struct + func New(clientId, secret, redirectURL string, httpClient *http.Client, ...) *Provider + func (Provider) Debug(bool) + func (Provider) RefreshTokenAvailable() bool + func (Provider) UnmarshalSession(data string) (goth.Session, error) + func (p *Provider) SetName(name string) + func (p Provider) BeginAuth(state string) (goth.Session, error) + func (p Provider) Client() *http.Client + func (p Provider) ClientId() string + func (p Provider) FetchUser(session goth.Session) (goth.User, error) + func (p Provider) Name() string + func (p Provider) RedirectURL() string + func (p Provider) RefreshToken(refreshToken string) (*oauth2.Token, error) + func (p Provider) Secret() string + type SecretParams struct + ClientId string + Exp int + Iat int + KeyId string + PKCS8PrivateKey string + TeamId string + type Session struct + AccessToken string + AuthURL string + ExpiresAt time.Time + RefreshToken string + func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, error) + func (s Session) GetAuthURL() (string, error) + func (s Session) Marshal() string + func (s Session) String() string