Versions in this module Expand all Collapse all v1 v1.79.0 Feb 20, 2024 v1.78.0 Sep 6, 2023 Changes in this version + const AuthURL + const ProfileURL + const ScopeSnsapiLogin + const TokenURL + type Provider struct + AuthURL string + ClientID string + ClientSecret string + Lang WechatLangType + ProfileURL string + RedirectURL string + TokenURL string + func New(clientID, clientSecret, redirectURL string, lang WechatLangType) *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 + Openid string + RefreshToken string + Unionid 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 + type WechatLangType string + const WECHAT_LANG_CN + const WECHAT_LANG_EN