Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth2 ¶ added in v0.5.2
type OAuth2 interface {
// GetAuthPageURL 获取授权页面 URL
GetAuthPageURL() string
// HandleAuth 处理授权码
HandleAuth(code *VerifyCode) (*User, error)
}
type VerifyCode ¶ added in v0.5.2
type VerifyCode struct {
/*
Code
第三方平台返回的授权码,用于获取用户信息
*/
Code string
/*
CodeVerifier
TikTok 在移动设备或桌面设备验证时必传参数,用于验证 code 的有效性
具体参考:https://developers.tiktok.com/doc/oauth-user-access-token-management?enter_method=left_navigation
*/
CodeVerifier string
Token string
Fields []string
}
Click to show internal directories.
Click to hide internal directories.