Versions in this module Expand all Collapse all v2 v2.1.5557 Feb 25, 2023 v2.1.5556 Oct 31, 2022 v2.1.5555 Oct 29, 2022 Changes in this version + type AuthBaseInfo struct + FuncInfo []AuthFuncInfo + type AuthFuncInfo struct + FuncscopeCategory ID + type AuthorizerBasicConfig struct + IsEmailConfigured bool + IsPhoneConfigured bool + type AuthorizerInfo struct + AccountStatus int + Alias string + BasicConfig *AuthorizerBasicConfig + BusinessInfo struct{ ... } + HeadImg string + MiniProgramInfo *MiniProgramInfo + NickName string + PrincipalName string + QrcodeURL string + RegisterType int + ServiceTypeInfo ID + UserName string + VerifyTypeInfo ID + type AuthrAccessToken struct + AccessToken string + Appid string + ExpiresIn int64 + RefreshToken string + type CategoriesInfo struct + First string + Second string + type ComponentAccessToken struct + AccessToken string + ExpiresIn int64 + type Context struct + func (ctx *Context) GetAuthrAccessToken(appid string) (string, error) + func (ctx *Context) GetAuthrInfo(appid string) (*AuthorizerInfo, *AuthBaseInfo, error) + func (ctx *Context) GetBindComponentURL(redirectURI string, authType int, bizAppID string) (string, error) + func (ctx *Context) GetComponentAccessToken() (string, error) + func (ctx *Context) GetComponentLoginPage(redirectURI string, authType int, bizAppID string) (string, error) + func (ctx *Context) GetPreCode() (string, error) + func (ctx *Context) QueryAuthCode(authCode string) (*AuthBaseInfo, error) + func (ctx *Context) RefreshAuthrToken(appid, refreshToken string) (*AuthrAccessToken, error) + func (ctx *Context) SetComponentAccessToken(verifyTicket string) (*ComponentAccessToken, error) + type ID struct + ID int + type MiniProgramInfo struct + Categories []CategoriesInfo + Network struct{ ... }