Versions in this module Expand all Collapse all v0 v0.0.0 Oct 6, 2022 Changes in this version + type Provider struct + func New(clientID, clientSecret, redirectURL string, scopes ...string) *Provider + func (p *Provider) BeginAuth(state string) (goth.Session, error) + func (p *Provider) Client() *http.Client + func (p *Provider) Debug(debug bool) + func (p *Provider) FetchUser(session goth.Session) (_ goth.User, err 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(data string) (goth.Session, error) + 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