auth

package
v3.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

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 NewClient

func NewClient(app *kernel.ApplicationInterface) (*Client, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL