Versions in this module Expand all Collapse all v1 v1.0.0 Jul 27, 2020 v0 v0.0.2 Oct 21, 2020 v0.0.1 Oct 12, 2020 Changes in this version + type AuthBaseInfo struct + FuncInfo []AuthFuncInfo + type AuthFuncInfo struct + FuncscopeCategory ID + type AuthorizerInfo struct + Alias string + BusinessInfo struct{ ... } + HeadImg string + NickName string + PrincipalName string + QrcodeURL string + ServiceTypeInfo ID + UserName string + VerifyTypeInfo ID + type AuthrAccessToken struct + AccessToken string + Appid string + ExpiresIn int64 + RefreshToken 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) GetComponentAccessToken() (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