Versions in this module Expand all Collapse all v1 v1.0.2 Mar 22, 2025 Changes in this version + const PARSED_ID_TOKEN_USER_KEY + const REFRESH_TOKEN_EXPIRES_AT_USER_KEY + type IDToken struct + Aud []string + AuthTime int64 + Exp int64 + Iat int64 + Iss string + RealmId string + Sub string type Session + AccessTokenExpiresAt time.Time + IDToken string + ParsedIDToken *IDToken + RefreshTokenExpiresAt time.Time v1.0.0 Mar 22, 2025 Changes in this version + const ScopeAccounting + const ScopeAddress + const ScopeEmail + const ScopeOpenID + const ScopePayment + const ScopePhone + const ScopeProfile + func SetIsProd(isProd bool) + type Provider struct + CallbackURL string + ClientKey string + HTTPClient *http.Client + Secret string + func New(clientKey, secret, callbackURL 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, 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 + UserID 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