google

package
v0.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderKey = "google"
)

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(clientID string, clientSecret string) oauth.Provider

func UnmarshalJSON

func UnmarshalJSON(data []byte) (oauth.UserInfo, error)

Types

type UserInfo

type UserInfo struct {
	Email         string `json:"email"`
	VerifiedEmail bool   `json:"verified_email"`
	Name          string `json:"name"`
}

Jump to

Keyboard shortcuts

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