Documentation
¶
Index ¶
Constants ¶
View Source
const ( Profile = "https://www.googleapis.com/auth/userinfo.profile" // 获取用户信息 Email = "https://www.googleapis.com/auth/userinfo.email" // 获取用户邮箱 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth ¶
type OAuth struct {
// contains filtered or unexported fields
}
func (*OAuth) GetLoginURL ¶ added in v0.5.0
func (*OAuth) HandlerAuth ¶
func (auth *OAuth) HandlerAuth(code string) (*localOauth2.User, error)
type Option ¶
type Option func(o *Options)
func WithClientID ¶
func WithClientSecret ¶
func WithRedirectURL ¶
Click to show internal directories.
Click to hide internal directories.