Documentation ¶
Index ¶
Constants ¶
View Source
const Name string = "googleAPI"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleOAuth ¶
type GoogleOAuth struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg config.OAuthConfig) *GoogleOAuth
func (*GoogleOAuth) Config ¶
func (g *GoogleOAuth) Config() *oauth2.Config
func (*GoogleOAuth) GenerateStateOauthCookie ¶
func (g *GoogleOAuth) GenerateStateOauthCookie(w http.ResponseWriter) string
func (*GoogleOAuth) GetUserData ¶
func (g *GoogleOAuth) GetUserData(code string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.