Documentation ¶
Index ¶
- type AccessToken
- type Client
- func (comp *Client) CheckSession(ctx context.Context, openId string, sessionKey string) (*response.ResponseCode2Session, error)
- func (comp *Client) ResetUserSessionKey(ctx context.Context, openId string, sessionKey string) (*response2.ResponseMiniProgram, error)
- func (comp *Client) Session(ctx context.Context, code string) (*response.ResponseCode2Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct {
*kernel.AccessToken
}
func NewAccessToken ¶
func NewAccessToken(app kernel.ApplicationInterface) (*AccessToken, error)
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*AccessToken, error)
func (*AccessToken) OverrideGetCredentials ¶
func (accessToken *AccessToken) OverrideGetCredentials()
Override GetCredentials
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func RegisterAuthProvider ¶
func RegisterAuthProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) CheckSession ¶ added in v3.2.20
func (comp *Client) CheckSession(ctx context.Context, openId string, sessionKey string) (*response.ResponseCode2Session, error)
检验登录态。 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/user-login/checkSessionKey.html
func (*Client) ResetUserSessionKey ¶ added in v3.2.20
func (comp *Client) ResetUserSessionKey(ctx context.Context, openId string, sessionKey string) (*response2.ResponseMiniProgram, error)
重置登录态。 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/user-login/ResetUserSessionKey.html
func (*Client) Session ¶
func (comp *Client) Session(ctx context.Context, code string) (*response.ResponseCode2Session, error)
登录凭证校验。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html
Click to show internal directories.
Click to hide internal directories.