Versions in this module Expand all Collapse all v0 v0.0.1 Feb 4, 2024 Changes in this version + type APIResponse struct + Organisations []Organisation + type Organisation struct + CountryCode string + LegalName string + Name string + OrganisationType string + ShortCode string + type Provider struct + CallbackURL string + ClientKey string + HTTPClient *http.Client + Method string + Secret string + func New(clientKey, secret, callbackURL 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, error) + func (p *Provider) Name() string + func (p *Provider) RefreshOAuth1Token(session *Session) error + 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 *oauth.AccessToken + AccessTokenExpires time.Time + AuthURL string + RequestToken *oauth.RequestToken + 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