Versions in this module Expand all Collapse all v1 v1.80.0 May 21, 2024 v1.79.0 Feb 20, 2024 Changes in this version + type Provider struct + func New(clientID string, clientSecret string, redirectURI string, duration string, ...) Provider + func (p *Provider) BeginAuth(state string) (goth.Session, error) + func (p *Provider) Debug(b bool) + func (p *Provider) FetchUser(s goth.Session) (goth.User, error) + func (p *Provider) Name() string + func (p *Provider) RefreshToken(refreshToken string) (*oauth2.Token, error) + func (p *Provider) RefreshTokenAvailable() bool + func (p *Provider) SetName(name string) + func (p *Provider) UnmarshalSession(s string) (goth.Session, error) + type Session struct + AccessToken string + AuthURL string + Expiry time.Time + RefreshToken string + TokenType string + func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, error) + func (s *Session) GetAuthURL() (string, error) + func (s *Session) Marshal() string